Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST] Fix FsHealthServiceTest by increasing the timeout period before checking the FS health after restoring the FS status #1813

Merged
merged 1 commit into from
Dec 29, 2021

Conversation

tlfeng
Copy link
Collaborator

@tlfeng tlfeng commented Dec 28, 2021

Description

Although there has been a commit baa10b9 that aimed to fix the test failure in #1567, there is still a failure reported in #1567 (comment).
The PR gives another try to fix the unit test testFailsHealthOnHungIOBeyondHealthyTimeout() in class FsHealthServiceTests by extending the timeout period again, based on the idea in #1567 (comment).

  • Increase the max waiting time between cancelling the IO hanging and checking the File System health status. Increase the 3x multiplier to 4x that applied to refreshInterval.

For more detail about the past attempt to fix the test, please see PR #1692

Issues Resolved

Fix #1567
#1307 and #1450 - These 2 issues reporting the same test failure as #1567.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…e checking the FS health after restoring the FS status

Signed-off-by: Tianli Feng <[email protected]>
@tlfeng tlfeng requested a review from a team as a code owner December 28, 2021 01:17
@tlfeng tlfeng added :test Adding or fixing a test v2.0.0 Version 2.0.0 labels Dec 28, 2021
@opensearch-ci-bot
Copy link
Collaborator

Can one of the admins verify this patch?

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 3ee01ae
Log 1690

Reports 1690

@tlfeng tlfeng merged commit c05e0d9 into opensearch-project:main Dec 29, 2021
@tlfeng tlfeng deleted the fix-fshealth-timeout-2 branch December 29, 2021 04:51
@tlfeng tlfeng added the pending backport Identifies an issue or PR that still needs to be backported label Dec 30, 2021
@tlfeng
Copy link
Collaborator Author

tlfeng commented Dec 30, 2021

Note: Pending backport along with baa10b9, after the PR #1269 merged.

@tlfeng
Copy link
Collaborator Author

tlfeng commented Feb 7, 2022

Update: The test fix has been included in the commit 88d1d65 of the PR #1269, by Bukhtawar in #1692 (comment).

@tlfeng tlfeng removed the pending backport Identifies an issue or PR that still needs to be backported label Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:test Adding or fixing a test v2.0.0 Version 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] FsHealthServiceTests.testFailsHealthOnHungIOBeyondHealthyTimeout (Random test Failure)
3 participants