Skip to content

Conversation

@artembilan
Copy link
Member

The KafkaListenerEndpointRegistry.getUnregisteredListenerContainer() returns null when container is already present in the internal unregisteredContainers cache

  • Fix KafkaListenerEndpointRegistry.getUnregisteredListenerContainer() to return a container instance from the unregisteredContainers cache

Auto-cherry-pick to 3.2.x & 3.1.x

The `KafkaListenerEndpointRegistry.getUnregisteredListenerContainer()`
returns `null` when container is already present in the internal `unregisteredContainers` cache

* Fix `KafkaListenerEndpointRegistry.getUnregisteredListenerContainer()` to return a container
instance from the `unregisteredContainers` cache

**Auto-cherry-pick to `3.2.x` & `3.1.x`**
@sobychacko
Copy link
Contributor

Do you think we need to update the Javadoc on ListenerContainerRegistry since we are not returning null any longer?

@artembilan
Copy link
Member Author

It still will be null if there is no such a bean.

@sobychacko sobychacko merged commit 8096c9d into spring-projects:main Jun 20, 2024
spring-builds pushed a commit that referenced this pull request Jun 20, 2024
The `KafkaListenerEndpointRegistry.getUnregisteredListenerContainer()`
returns `null` when container is already present in the internal `unregisteredContainers` cache

* Fix `KafkaListenerEndpointRegistry.getUnregisteredListenerContainer()` to return a container
instance from the `unregisteredContainers` cache

(cherry picked from commit 8096c9d)
sobychacko pushed a commit that referenced this pull request Jun 20, 2024
Fixes: #3319

The `KafkaListenerEndpointRegistry.getUnregisteredListenerContainer()`
returns `null` when container is already present in the internal `unregisteredContainers` cache

* Fix `KafkaListenerEndpointRegistry.getUnregisteredListenerContainer()` to return a container
instance from the `unregisteredContainers` cache

(cherry picked from commit 8096c9d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants