-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable the graceful shutdown in dev mode.
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.
- Loading branch information
1 parent
cf73c98
commit e3880b0
Showing
2 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...c/main/java/io/quarkus/smallrye/reactivemessaging/kafka/ReactiveMessagingKafkaConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.quarkus.smallrye.reactivemessaging.kafka; | ||
|
||
import org.eclipse.microprofile.config.inject.ConfigProperty; | ||
|
||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
|
||
@ConfigRoot(name = "reactive-messaging.kafka") | ||
public class ReactiveMessagingKafkaConfig { | ||
|
||
/** | ||
* Enables the graceful shutdown in dev mode. | ||
* 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's disabled by default. | ||
* This setting allows to re-enable it. | ||
*/ | ||
@ConfigProperty(defaultValue = "false") | ||
public boolean enableGracefulShutdownInDevMode; | ||
|
||
} |