wu-sheng commented on pull request #7270: URL: https://github.com/apache/skywalking/pull/7270#issuecomment-877628641
> This bug happens in KafkaProducerManager::prepare method, which is a BootService. It works in the same thread with SkyWalkingAgent::premain. Then, I read the codes, then this is not premain thread, this is a thread created through `Executors.newSingleThreadScheduledExecutor`. You should not manipulate the premain thread class loader, instead, please use this inside `KafkaProducerManager#run` when it runs in the first time, which is much safer and only effects a thread we created inside the agent. Does this make sense for you? Could you try locally? -- 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]
