SaketaChalamchala opened a new pull request, #5485:
URL: https://github.com/apache/ozone/pull/5485

   ## What changes were proposed in this pull request?
   
   This issue happens when a container is deleted while it's being scanned by 
the ContainerDataScanner. 
   The Scanner scans all the blocks in a container and logs the error when it 
cannot find the block files.
   Since the container has been deleted, the scanner unnecessarily continues to 
check every block and logs the error.
   The Scanner also tries to mark the container as unhealthy and update the 
scan timestamp of the container. It ultimately fails because the container no 
longer exists on the host.
   
   The proposed solution has the Scanner check whether the container has been 
deleted if block scan fails. 
   If the container has been deleted, then the scanner skips checking the rest 
of the blocks and updates the result with a `DELETED_CONTAINER` failure type.
   If scanning a container fails with `DELETED_CONTAINER` failure type then 
Scanner skips marking the container as unhealthy and updating the container's 
scan timestamp.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9005
   
   ## How was this patch tested?
   
   Unit Tests are added.
   


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