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 test where I configure multiple topics and have test container waiting for assignments, after updating to SpringBoot 3.2.0, my integration test freezing and returning :
Caused by: java.lang.IllegalStateException: Expected 2 but got 1 partitions
@EventListener(ContextRefreshedEvent::class)
fun waitForAssignment() {
for (messageListenerContainer in kafkaListenerEndpointRegistry.listenerContainers) {
if (shouldWaitForAssignment(messageListenerContainer)) {
ContainerTestUtils.waitForAssignment(messageListenerContainer, embeddedKafka.partitionsPerTopic)
}
}
}