DuanYuePeng commented on pull request #7270:
URL: https://github.com/apache/skywalking/pull/7270#issuecomment-877604143


   This bug happens in `KafkaProducerManager::prepare` method, which is a 
`BootService`. It works in the same thread with `SkyWalkingAgent::premain`.
   ```
   AdminClient adminClient = AdminClient.create(properties);
   ```
   Just see the Thread dump.
   ```
   init:278, LoginContext (javax.security.auth.login)
   <init>:512, LoginContext (javax.security.auth.login)
   login:59, AbstractLogin 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.common.security.authenticator)
   <init>:62, LoginManager 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.common.security.authenticator)
   acquireLoginManager:105, LoginManager 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.common.security.authenticator)
   configure:147, SaslChannelBuilder 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.common.network)
   create:146, ChannelBuilders 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.common.network)
   clientChannelBuilder:67, ChannelBuilders 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.common.network)
   createChannelBuilder:99, ClientUtils 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.clients)
   createInternal:426, KafkaAdminClient 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.clients.admin)
   create:59, Admin 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.clients.admin)
   create:39, AdminClient 
(org.apache.skywalking.apm.dependencies.org.apache.kafka.clients.admin)
   prepare:58, KafkaProducerManager (org.apache.skywalking.apm.agent.core.kafka)
   lambda$prepare$1:105, ServiceManager 
(org.apache.skywalking.apm.agent.core.boot)
   accept:-1, 783191662 
(org.apache.skywalking.apm.agent.core.boot.ServiceManager$$Lambda$6)
   accept:183, ForEachOps$ForEachOp$OfRef (java.util.stream)
   end:357, SortedOps$SizedRefSortingSink (java.util.stream)
   copyInto:483, AbstractPipeline (java.util.stream)
   wrapAndCopyInto:472, AbstractPipeline (java.util.stream)
   evaluateSequential:150, ForEachOps$ForEachOp (java.util.stream)
   evaluateSequential:173, ForEachOps$ForEachOp$OfRef (java.util.stream)
   evaluate:234, AbstractPipeline (java.util.stream)
   forEach:485, ReferencePipeline (java.util.stream)
   prepare:103, ServiceManager (org.apache.skywalking.apm.agent.core.boot)
   boot:44, ServiceManager (org.apache.skywalking.apm.agent.core.boot)
   premain:133, SkyWalkingAgent (org.apache.skywalking.apm.agent)
   invoke0:-1, NativeMethodAccessorImpl (sun.reflect)
   invoke:62, NativeMethodAccessorImpl (sun.reflect)
   invoke:43, DelegatingMethodAccessorImpl (sun.reflect)
   invoke:498, Method (java.lang.reflect)
   loadClassAndStartAgent:386, InstrumentationImpl (sun.instrument)
   loadClassAndCallPremain:401, InstrumentationImpl (sun.instrument)
   ```


-- 
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]


Reply via email to