mfvitale commented on PR #17743: URL: https://github.com/apache/kafka/pull/17743#issuecomment-3370394628
Hi guys, I’m running into an issue where a static field in a class isn’t being shared between a connector and its SMT. MOre details [here](https://lists.apache.org/[email protected]) For my understanding, Kafka Connect (before 4.1) should load both under the same class loader when they come from the same plugin path, meaning static fields should be shared. However, what I’m seeing is that the connector and the SMT appear to be loaded by different class loaders, resulting in separate copies of the same class and its static state. Seems to me that with the KIP-891 this assumption is now broken. Am I get it correctly? In particular the broken behavior is related to the SMT that now are loaded in a dedicated class loader. Is this documented somewhere? In addition I'm seeing a weird and inconsistent behavior since in some cases it works as in the past (sharing between SMT and connector works) and in other case it is broken. I'm still trying to understand the root cause for this inconsistency. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
