kerneltime opened a new pull request, #4324: URL: https://github.com/apache/ozone/pull/4324
## What changes were proposed in this pull request? Reset pending delete block count to 0 if a container has no transactions Each container has a counter that tracks the number of pending delete blocks in the delete_txns table for that container. In some cases, this counter can remain positive when all delete transactions are cleared, and the counter will never be reset. This means it will continue to be chosen for deletion instead of other containers that actually have delete txns. After this change, if a container is chosen for deletion because it has >0 pending delete block count but upon deleting from the container, it is found that there are actually no delete txns, reset the pending delete block counter to 0. This way it will not be chosen for block deletion until it gets more delete transactions. A new unit test for TestBlockDeletingService was added, and the whole TestBlockDeletingService suite passes. Author: Ethan Rose Change-Id: I43e6815962f2db83a95a396020cfa6b7195a8f5f ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-7156 ## How was this patch tested? Unit tests included -- 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]
