Skip to content

HDDS-16131. Intermittent failure in TestBlockDeletingService#testBlockDeletionMetricsUpdatedProperlyAfterEachExecution - #11013

Open
echonesis wants to merge 1 commit into
apache:masterfrom
echonesis:HDDS-16131
Open

HDDS-16131. Intermittent failure in TestBlockDeletingService#testBlockDeletionMetricsUpdatedProperlyAfterEachExecution#11013
echonesis wants to merge 1 commit into
apache:masterfrom
echonesis:HDDS-16131

Conversation

@echonesis

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This patch ensures that BlockDeletingServiceTestImpl is shut down in a finally block. Service shutdown waits for the deletion tasks to finish and release their container DB references before test cleanup runs.

The same lifecycle handling is also added to testChecksumFileUpdatedWhenDeleteRetried, which starts the service without shutting it down and is susceptible to the same teardown race.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-16131

How was this patch tested?

Local Test

mvn -pl :hdds-container-service test \
    -Dtest='TestBlockDeletingService#testBlockDeletionMetricsUpdatedProperlyAfterEachExecution+testChecksumFileUpdatedWhenDeleteRetried' \
    -DskipShade -DskipRecon -DskipDocs

GitHub Actions CI

…kDeletionMetricsUpdatedProperlyAfterEachExecution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant