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
I am trying to implement a circuit breaker with resilience 4j and I need my reactive kafka consumer to pause/resume based on circuit breaker events.
Code flow
There is a reactive kafka receiver that receives records and in turn calls a downstream API. The circuit breaker is implemented such that when the downstream API fails, the circuit state becomes open. Once this happens, we are trying to pause the kafka consumer using the below code snippet:
I am trying to implement a circuit breaker with resilience 4j and I need my reactive kafka consumer to pause/resume based on circuit breaker events.
Code flow
There is a reactive kafka receiver that receives records and in turn calls a downstream API. The circuit breaker is implemented such that when the downstream API fails, the circuit state becomes open. Once this happens, we are trying to pause the kafka consumer using the below code snippet:
The log "Successful pause" with the correct partitions is getting printed but the consumer is not pausing.
Expected Behavior
The consumer should be paused until it is resumed manually using consumer.resume(consumer.assignment())
Actual Behavior
Either one of 2 things is happening:
Steps to Reproduce
Wrap a circuit breaker on top of the processRecord() method and add the pause functionality on circuit breaker state transition from closed to open
Your Environment
java -version
): 17The text was updated successfully, but these errors were encountered: