Skip to content

HDDS-17010. Avoid disk check timeout for empty volume sets - #11545

Merged
chihsuan merged 1 commit into
apache:masterfrom
andyhuangdev:HDDS-17010
Oct 15, 2026
Merged

chihsuan merged 1 commit into
apache:masterfrom
andyhuangdev:HDDS-17010

Conversation

@andyhuangdev

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Return an empty failure set immediately from StorageVolumeChecker.checkAllVolumes() when the supplied volume collection is empty.

Previously, an empty collection left the completion latch unreleased, causing the method to wait for the full disk check timeout (10 minutes by default) and log a misleading timeout warning. Since volume sets are checked sequentially, this delayed checks of subsequent sets and extended the periodic check cycle.

The change preserves existing behavior for non-empty collections and adds a regression test for empty collections.

What is the link to the Apache JIRA

HDDS-17010

How was this patch tested?

  • Confirmed the new regression test failed before the fix by exceeding its 10-second limit with a configured 10-minute disk check timeout.
  • After the fix, all 33 tests in TestStorageVolumeChecker, TestVolumeSet, TestVolumeSetDiskChecks, and TestPeriodicVolumeChecker passed.
  • Ran ./hadoop-ozone/dev-support/checks/checkstyle.sh successfully.
  • Ran git diff --check successfully.

Return an empty failure set immediately when no volumes need checking. Add a regression test requiring completion before the configured disk check timeout.

Tests: 33 volume checker and volume set tests passed; checkstyle passed.

@chihsuan chihsuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch! @andyhuangdev LGTM

@chihsuan
chihsuan merged commit 5844b8c into apache:master Oct 15, 2026
87 of 89 checks passed
@andyhuangdev
andyhuangdev deleted the HDDS-17010 branch October 16, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants