Skip to content

HDDS-16500. Test stabilization fixes for the ZDU branch - #11258

Open
errose28 wants to merge 3 commits into
apache:HDDS-14496-zdufrom
errose28:worktree/zdu-branch-stabilization
Open

errose28 wants to merge 3 commits into
apache:HDDS-14496-zdufrom
errose28:worktree/zdu-branch-stabilization

Conversation

@errose28

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Proactively apply a few test-only timing fixes for upgrade related tests to prevent them from becoming flaky:

  • TestScmDataDistributionFinalization
    • transferLeadership does not block the client until the election finishes, so getActiveSCM could return null the way the test is currently written. Wait for the election to finish instead.
    • Increase unnecessarily tight container close timeout
  • OMUpgradeTestUtils
    • Don't fail the test on transient IO errors from the status RPC. Retry instead. A persistent error will still cause the test to fail with a timeout.
    • Increase finalization wait timeout from 20 seconds to 1 minute to match the more lenient timeout already used for HDDS specific finalization tests.

What is the link to the Apache JIRA

HDDS-16500

How was this patch tested?

These are proactive fixes based on observations so there is no failing run to compare these with. Tests continue to pass on my fork with this change (the acceptance test failure is unrelated).

* HDDS-14496-zdu:
  HDDS-16399. Fix flaky testFinalizationEmptyClusterDataDistribution (apache#11228)
  HDDS-15966. Fix flaky TestScmHAFinalization#testSnapshotFinalization (apache#11200)
@errose28 errose28 added the zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496 label Sep 18, 2026

@dombizita dombizita 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 @errose28!

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

Labels

zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants