Xushaohong commented on PR #3835:
URL: https://github.com/apache/ozone/pull/3835#issuecomment-1280788993

   > The goal here is to have a consistent CLI, so we keep the code as it is 
but we won't expose that behavior to the user. We need the --ip to accept only 
an IP address and add the --hostname parameter for accepting a hostname. We 
could create two new maps, one for mapping IP to UUID and one for mapping 
hostname to UUID and we could use those maps for accessing datanode info from 
the CLI. @adoroszlai @sokui What do you think about this approach?
   
   This sounds feasible, but some worry occurs that how to make sure the IP - 
UUID - hostname mapping is always consistent. If the hostname changes at some 
DN, we may need the retry logic with the IP-UUID mapping and need to update the 
corresponding hostname.


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