ChenSammi commented on pull request #2435:
URL: https://github.com/apache/ozone/pull/2435#issuecomment-886335962


   Thanks @JacksonYao287 for working on this. 
   
   When a DN registered,  the DatanodeDetails instance which presents DN is 
added into both Topology tree and nodeStateManager.  nodeStateManager is used 
more frequently than Topology to get a DN's info.  Would you add a Precondition 
check that 
   1. after DN is removed from topology,  DatanodeDetails instance returned 
from nodeStateManager has no parent. 
   2. after DN is added back into topology,  DatanodeDetails instance returned 
from nodeStateManager has parent correctly set.   
   
   And would you add a new UT for it. 
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to