Shuo Huang created HDDS-17706:
---------------------------------

             Summary: Datanode usageinfo retries queries for unknown UUIDs
                 Key: HDDS-17706
                 URL: https://issues.apache.org/jira/browse/HDDS-17706
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Shuo Huang
            Assignee: Shuo Huang


Querying usage information with a valid UUID that is not registered in SCM 
throws a NullPointerException:
{code:bash}
ozone admin datanode usageinfo --node-id <UUID>
{code}
{noformat}
Cannot invoke "org.apache.hadoop.hdds.protocol.DatanodeDetails.getID()" because 
"datanodeDetails" is null
{noformat}
SCM's getNode() returns null, which is passed to getUsageInfo() without a null 
check. The client then retries the failed request until its retry limit is 
reached.

Reproduced locally with the retry limit set to 2. SCM received the same query 3 
times. 
The default configuration allows 300 retries at 2-second intervals.

The command should report that the datanode was not found without retrying.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to