Is it possible for AbstractKafkaListenerContainerFactory's setContainerCustomizer to receive null parameter during runtime? #4120
-
|
Hi everyone, my service's KafkaListenerContainer 'crashes' due to 'Fatal consumer exception' caused by auth exceptions when broker changes its SSL configs. I found out that I can set
However, I am concerned of the "future containers" possibly being null - is this a possibility? If so, I would need to handle NPE. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Would you mind to elaborate? |
Beta Was this translation helpful? Give feedback.
Would you mind to elaborate?
The
ContainerCustomizeris called from theAbstractKafkaListenerContainerFactoryat the moment when target container is created.If that factory is out of use, then no customizer calls.
Therefore no way that it somehow may lead to null.