HDDS-9962. Intermittent timeout in TestBlockDeletion.testBlockDeletion #5886
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Fix unstable integration tests.
Multiple tests have uncovered a number of things that can cause
TestBlockDeletionto failhdds.datanode.block.delete.queue.limitdefaults to 5, which may cause tasks to be discarded if they can't be added to the queue, thus causing the test to time out. (fix by HDDS-9976. Ozone StateContext Memory leak for DeleteBlocksCommand when queue is full #5845)restartHddsDatanodeinTestBlockDeletion.testBlockDeletioncan sometimes cause the DN to be restarted before sending theDeleteBlockTransactionResultto the SCM.ozone/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestBlockDeletion.java
Lines 299 to 310 in 4eca52b
SCMBlockDeletingService#notifyStatusChangedinSCMBlockDeletingServicemay be executed several times, resulting in theserviceStatusbeing set fromRUNNINGtoPAUSING, which leads toSCMBlockDeletingServicedoes not work.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9962
How was this patch tested?
Existing Test.
Twice 25 * 15 Tests all successful
https://github.com/xichen01/ozone/actions/runs/7353980620/attempts/1
https://github.com/xichen01/ozone/actions/runs/7353980620