Zhannan3 opened a new issue, #9950:
URL: https://github.com/apache/skywalking/issues/9950

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache SkyWalking Component
   
   Java Agent (apache/skywalking-java)
   
   ### What happened
   
   If the run() methods Code in
   
   notify(GRPCChannelStatus.CONNECTED);
   reconnectCount = 0;
   reconnect = false;
   
   And reportError (Throwable Throwable) methods
   
   if (isNetworkError(throwable)) {
     reconnect = true;
     notify(GRPCChannelStatus.DISCONNECT);
   }
   
   The code is run simultaneously, but in the order
   
   notify(GRPCChannelStatus.CONNECTED);
   reconnectCount = 0;
   reconnect = true;
   notify(GRPCChannelStatus.DISCONNECT);
   reconnect = false;
   
   Will appear
   GRPCChannelStatus equals DISCONNECT
   reconnect = false;
   As a result, run() in GRPCChannelManager cannot establish a link again,Agent 
will no longer report information
   
   ### What you expected to happen
   
   GRPCChannelStatus equals DISCONNECT
   reconnect = false;
   As a result, run() in GRPCChannelManager cannot establish a link again,Agent 
will no longer report information
   
   ### How to reproduce
   
   run() method and reportError (Throwable Throwable) method run simultaneously
   
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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