zhaostu4 commented on PR #2843:
URL: https://github.com/apache/celeborn/pull/2843#issuecomment-2434325328

   > Can you explain how this NPE exception happens?
   
   When a worker object is initialized, pushServer and fetchServer will be 
created first and provide services. When receiving a request, the server 
determines whether the handler is ready by checking registered. In the original 
implementation, although registered is assigned a value, the handler may still 
not be ready. The code after registered is assigned a value may not have been 
executed completely. Generally, the more EventLoopGroup threads there are, the 
greater the probability of this occurrence. In this PR, we place the assignment 
of registered at the end, which can avoid this situation.


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