Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(microservices): add kafka retriable exception, auto-unwrap payloads #9586

Merged
merged 12 commits into from May 17, 2022

Conversation

kamilmysliwiec
Copy link
Member

@kamilmysliwiec kamilmysliwiec commented May 17, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

More details: #9293

What is the new behavior?

Also fixes #5974 & #6254

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

davidschuette and others added 9 commits March 4, 2022 01:17
Provide access to kafkajs commitOffset by using @ctx() decorator when handeling an event.

This commit closes Kafka commitOffsets #9283.
Error thrown by event handling method are no longer being caught by RcpExecptionFilter.
Instead errors are passed to kafkajs's eachMessage.
This results in proper interaction with kafka.

This commit closes Kafka commitOffsets #9283.
Provide access to native consumer of kafkajs using @ctx() decorator.
@coveralls
Copy link

coveralls commented May 17, 2022

Pull Request Test Coverage Report for Build 1f7e7cca-82dd-4504-95eb-3b9dadde6b13

  • 31 of 37 (83.78%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.07%) to 94.046%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/microservices/deserializers/kafka-request.deserializer.ts 4 5 80.0%
packages/microservices/server/server-kafka.ts 22 27 81.48%
Totals Coverage Status
Change from base Build a8c21889-cd98-4fa6-b9d1-d8880df268cc: -0.07%
Covered Lines: 5797
Relevant Lines: 6164

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kafka Microservice Does not validate DTO
3 participants