Skip to content

HDDS-15918. Optimize TestSCMNodeManager execution time and stability by reducing heartbeat configs#10837

Open
rich7420 wants to merge 1 commit into
apache:masterfrom
rich7420:HDDS-15918
Open

HDDS-15918. Optimize TestSCMNodeManager execution time and stability by reducing heartbeat configs#10837
rich7420 wants to merge 1 commit into
apache:masterfrom
rich7420:HDDS-15918

Conversation

@rich7420

@rich7420 rich7420 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Since TestSCMNodeManager should be lighter as it is an unit test. The heartbeat intervals and node state timeouts are configured in seconds, which unnecessarily prolongs the test duration. It will be better to set heartbeat interval and timeouts to a lower value. For example 100ms for heartbeats.

What is the link to the Apache JIRA

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

How was this patch tested?

https://github.com/rich7420/ozone/actions/runs/29815586760

try 100times
https://github.com/rich7420/ozone/actions/runs/29815603643

…by reducing heartbeat configs

Lower the second-level heartbeat interval and stale/dead node timeouts to
100ms/1s/2s and replace fixed Thread.sleep waits with GenericTestUtils.waitFor
polling so the node-state transition tests converge quickly and tolerate slow
CI. Reduces TestSCMNodeManager wall time ~104s -> ~82s with all 48 tests
passing. Config-validation and stats tests that do not wait on stale/dead are
left unchanged.
Copilot AI review requested due to automatic review settings July 22, 2026 07:06

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rich7420

Copy link
Copy Markdown
Contributor Author

cc @chungen0126

@chungen0126

Copy link
Copy Markdown
Contributor

Thanks @rich7420 for working on this. Could you also share the run time of the test? I hope it will speed up the test.

@rich7420

Copy link
Copy Markdown
Contributor Author

Thanks @chungen0126! Full TestSCMNodeManager goes from ~104s to ~82s on my machine (48 tests, about 20% faster).

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.

3 participants