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 have two tests, each producing messages to a different topic.
I have a single assert to check if any message was consumed by the application. I also added logs right under the KafkaListener method.
When running both tests together, the second test always fails. There is no logs for the failed one, but I can see in the kafka the message there. It's just never consumed at all. Not even the deserializer is invoked.
Running the second test alone, it passes. Proof that my implementation is correct, and it only fails when both run together.
If I split the single @KafkaListener method into two separate methods, each with its own @KafkaListener, one for the first topic and another for the second topic, both tests pass.
If I revert back to 3.3.1, keeping the single @KafkaListener for multiple topics, both tests pass.
Expected Behavior
The same @KafkaListener should continue consuming from both topics in ** 3.3.2**, just like it does in 3.3.1.
Running tests for both topics should not interfere with each other.
Steps to Reproduce
Use Spring Kafka 3.3.2.
Create a single @KafkaListener method listening to multiple topics.
Write two test cases, each producing messages to one of the topics, asserting that the messge was consumed.
Run both tests together: the second test always fails.
Run the second test alone: it passes.
Change to two separate @KafkaListener methods, one for each topic: both tests pass.
Downgrade to 3.3.1: both tests pass with a single @KafkaListener.
Additional Information
Using "io.projectreactor.kafka:reactor-kafka"
Could this be a bug introduced in Spring Kafka or related to how Kafka consumers are initialized in 3.3.2?
The text was updated successfully, but these errors were encountered:
Affected Version
Description
After upgrading from Spring Kafka 3.3.1 to 3.3.2, a
@KafkaListener
annotated method listening to multiple topics stopped working properly in tests.I have two topics configured:
Observed Behavior
@KafkaListener
method into two separate methods, each with its own@KafkaListener
, one for the first topic and another for the second topic, both tests pass.@KafkaListener
for multiple topics, both tests pass.Expected Behavior
@KafkaListener
should continue consuming from both topics in ** 3.3.2**, just like it does in 3.3.1.Steps to Reproduce
@KafkaListener
method listening to multiple topics.@KafkaListener
methods, one for each topic: both tests pass.@KafkaListener
.Additional Information
Could this be a bug introduced in Spring Kafka or related to how Kafka consumers are initialized in 3.3.2?
The text was updated successfully, but these errors were encountered: