Skip to content

HDDS-13108. Refactor StorageVolume to use SlidingWindow - #8843

Merged
ChenSammi merged 18 commits into
apache:masterfrom
ptlrs:HDDS-13108-Migrate-failed-volume-checks-to-one-sliding-window
Apr 8, 2026
Merged

HDDS-13108. Refactor StorageVolume to use SlidingWindow#8843
ChenSammi merged 18 commits into
apache:masterfrom
ptlrs:HDDS-13108-Migrate-failed-volume-checks-to-one-sliding-window

Conversation

@ptlrs

@ptlrsptlrs commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

Please describe your PR in detail:

This PR uses the new sliding window implementation.
It migrates all existing checks to detect a failed volume to use the new time-based sliding window utility.

What is the link to the Apache JIRA

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

How was this patch tested?

CI:https://github.com/ptlrs/ozone/actions/runs/16436635030

@ptlrs
ptlrs marked this pull request as draft July 22, 2025 06:38
@ptlrs

Copy link
Copy Markdown
ContributorAuthor

Hi @errose28@Tejaskriya@adoroszlai can you please review this PR?

@errose28errose28 added the scanners Changes related to datanode container and volume scanners label Jul 22, 2025
@Tejaskriya
Tejaskriya self-requested a review July 23, 2025 08:31
@errose28
errose28 self-requested a review July 23, 2025 18:46

@TejaskriyaTejaskriya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for working on this @ptlrs , please find a suggestion below

@ptlrs

Copy link
Copy Markdown
ContributorAuthor

Thanks for the review @Tejaskriya. I have added the configuration.

@ptlrs
ptlrs requested a review from TejaskriyaJuly 31, 2025 06:38

@TejaskriyaTejaskriya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me, @errose28 could you please take a look?

@github-actions

Copy link
Copy Markdown

This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution. This PR is being closed due to inactivity. If needed, feel free to reopen it.

@ptlrs

ptlrs commented Feb 9, 2026

Copy link
Copy Markdown
ContributorAuthor

Hi @errose28, could you please reopen this PR?

@errose28errose28 reopened this Feb 9, 2026
…e-failed-volume-checks-to-one-sliding-window
# Conflicts:
#	hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/DatanodeConfiguration.java
#	hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/HddsVolume.java
@ptlrs

Copy link
Copy Markdown
ContributorAuthor

Hi @errose28, the conflicts have been resolved for this PR. Could you please take a look.

@github-actions

Copy link
Copy Markdown

This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.

@adoroszlaiadoroszlai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @ptlrs for the patch.

@adoroszlaiadoroszlai changed the title HDDS-13108. Migrate failed volume checks to one sliding windowHDDS-13108. Refactor StorageVolume to use SlidingWindowMar 9, 2026
ptlrsand others added 2 commits March 25, 2026 08:30
Co-authored-by: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com>
@ptlrs

Copy link
Copy Markdown
ContributorAuthor

Hi @errose28@ChenSammi@adoroszlai I have updated this PR, could you please take another look?

@adoroszlaiadoroszlai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @ptlrs for updating the patch, LGTM.

)
private Duration diskCheckTimeout = DISK_CHECK_TIMEOUT_DEFAULT;

@Config(key = "hdds.datanode.disk.check.sliding.window.timeout",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

With this sliding window introduced, "hdds.datanode.disk.check.io.test.count" property function is half removed. We should consider deprecate "hdds.datanode.disk.check.io.test.count" and introduce a new boolean property with name, like "hdds.datanode.disk.check.io.test.enabled".

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To not break existing users, it's recommend to add new property "hdds.datanode.disk.check.io.test.enabled", instead of change the current property "hdds.datanode.disk.check.io.test.count" to "hdds.datanode.disk.check.io.test.enabled".

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Ok, I reverted the change which removed the config and updated the deprecated config list.

@ptlrs
ptlrs requested a review from ChenSammiMarch 31, 2026 03:13
@ChenSammi

Copy link
Copy Markdown
Contributor

@ptlrs , it looks like we cannot add "hdds.datanode.disk.check.io.test.count" to DeprecationDelta. It's different property type.

@ptlrs

ptlrs commented Apr 7, 2026

Copy link
Copy Markdown
ContributorAuthor

I have removed the modifications to DeprecationDelta

@ChenSammi
ChenSammi merged commit 9ff7eaa into apache:masterApr 8, 2026
45 checks passed
@ChenSammi

Copy link
Copy Markdown
Contributor

Thanks @ptlrs , and @Tejaskriya@adoroszlai for review.

@ptlrs
ptlrs deleted the HDDS-13108-Migrate-failed-volume-checks-to-one-sliding-window branch April 9, 2026 17:51
@ptlrs

ptlrs commented Apr 9, 2026

Copy link
Copy Markdown
ContributorAuthor

Thanks for the reviews @ChenSammi@adoroszlai@Tejaskriya

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

Labels

scannersChanges related to datanode container and volume scanners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@ptlrs@ChenSammi@adoroszlai@Tejaskriya@errose28