xichen01 opened a new pull request, #8542: URL: https://github.com/apache/ozone/pull/8542
## What changes were proposed in this pull request? CommandStatus in `StateContext#cmdStatusMap` will not be removed if it is PENDING (see: `CommandStatusReportPublisher#getReport`) SCMCommand in `StateContext#commandQueue` will be discarded in some scenarios, which will cause the CommandStatus in `StateContext#cmdStatusMap` to always be PENDING and cannot be removed. An example of this is when SCM restarts or cuts off the master, you can see a lot of log like "Unknown Datanode xxx Scm Command ID" or "Unknown SCM Command ID: " ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13163 ## How was this patch tested? unit test -- 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]
