You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.7 introduced this utility method so that error handlers with a BackOff would be responsive to a container.stop() operation; previously, the stop() would be delayed.
spring-projects#1845
- don't idle until partitions are assigned - it caused delayed assignment
- use `ListenerUtils.stoppableSleep()` - don't hold up container stop while idle
- `ListenerUtils.stoppableSleep()` - reduce sleep time for small intervals to
improve resolution
#1845
- don't idle until partitions are assigned - it caused delayed assignment
- use `ListenerUtils.stoppableSleep()` - don't hold up container stop while idle
- `ListenerUtils.stoppableSleep()` - reduce sleep time for small intervals to
improve resolution
2.7 introduced this utility method so that error handlers with a
BackOff
would be responsive to acontainer.stop()
operation; previously, thestop()
would be delayed.spring-kafka/spring-kafka/src/main/java/org/springframework/kafka/listener/ListenerUtils.java
Lines 237 to 253 in 8bcb052
This can also be used with
idleBetweenPolls
to avoid delaying thestop()
there too.spring-kafka/spring-kafka/src/main/java/org/springframework/kafka/listener/KafkaMessageListenerContainer.java
Lines 1533 to 1541 in 8bcb052
Enhance the method to use a regular
sleep()
if the idle interval is less than 500ms.The text was updated successfully, but these errors were encountered: