-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Disable the Kafka Connector graceful shutdown in dev mode #18945
Disable the Kafka Connector graceful shutdown in dev mode #18945
Conversation
40fc224
to
e3880b0
Compare
|
||
discoverDefaultSerdeConfig(discoveryState, defaultConfigProducer); | ||
if (launchMode.getLaunchMode() == LaunchMode.DEVELOPMENT) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about test mode as well? Will this potentially add extra time at the end of test runs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. Should it be controlled by the same configuration property?
Right now it uses enableGracefulShutdownInDevMode
, enableGracefulShutdownInDevAndTestMode
is a bit long, but with autocompletion, it should not be a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
e3880b0
to
37804a3
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 37804a3
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/resteasy-reactive-kotlin/standard✖
⚙️ JVM Tests - JDK 16 #📦 integration-tests/resteasy-reactive-kotlin/standard✖
|
...kus/smallrye/reactivemessaging/kafka/deployment/SmallRyeReactiveMessagingKafkaProcessor.java
Outdated
Show resolved
Hide resolved
Looks fine, barring the missing handling of |
37804a3
to
ae3a43f
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building ae3a43f
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/resteasy-reactive-kotlin/standard✖
⚙️ JVM Tests - JDK 16 #📦 integration-tests/resteasy-reactive-kotlin/standard✖
|
ae3a43f
to
d070c46
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building d070c46
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/resteasy-reactive-kotlin/standard✖
⚙️ JVM Tests - JDK 16 #📦 integration-tests/resteasy-reactive-kotlin/standard✖
|
Also, propose an option to re-enable it. The graceful shutdown waits until the inflight records have been processed and the offset committed to Kafka. While this setting is highly recommended in production, in dev and test modes, it introduces slowness on shutdown.
d070c46
to
22bba29
Compare
Also, propose an option to re-enable it.
The graceful shutdown waits until the inflight records have been processed and the offset committed to Kafka.
While this setting is highly recommended in production, in dev mode, it introduces slowness on shutdown.