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
In the `KafkaMessageListenerContainerTests.invokeBatchInterceptorSuccessFailureOnRetry()`
we are expecting interaction with a `BatchInterceptor`, when its `success` or `failure` happens
already after the `MessageListener` call, but a `CountDownLatch` thread barrier in the test setup
is counted in the `MessageListener` leading to race condition when we exit from the barrier to
verification phase, but `BatchInterceptor.success()` has not been called yet
in the other thread.
* Fix `KafkaMessageListenerContainerTests.invokeBatchInterceptorSuccessFailureOnRetry()`
moving `CountDownLatch` to the `BatchInterceptor.success()` implementation.
Leave `MessageListener` just only with an `AtomicInteger` for retry attempts
0 commit comments