Skip to content

ZOOKEEPER-5080: Fix flaky metric assertion in SnapshotAndRestoreCommandTest - #2442

Merged
anmolnar merged 1 commit into
apache:masterfrom
IvanKhanas:ZOOKEEPER-5080
Aug 25, 2026
Merged

ZOOKEEPER-5080: Fix flaky metric assertion in SnapshotAndRestoreCommandTest#2442
anmolnar merged 1 commit into
apache:masterfrom
IvanKhanas:ZOOKEEPER-5080

Conversation

@IvanKhanas

Copy link
Copy Markdown
Contributor

Time.currentElapsedTime counts whole milliseconds, so a snapshot of the ten
znodes this test creates can finish before the clock moves and leave
avg_snapshottime at 0.0 on a fast runner. Assert cnt_snapshottime instead, and
the same for avg_restore_time.

…ndTest

Time.currentElapsedTime counts whole milliseconds, so a snapshot of the ten
znodes this test creates can finish before the clock moves and leave
avg_snapshottime at 0.0 on a fast runner. Assert cnt_snapshottime instead, and
the same for avg_restore_time.
@uros-b

uros-b commented Aug 24, 2026

Copy link
Copy Markdown
Member

+1, LGTM

@anmolnar
anmolnar merged commit b1d1f47 into apache:master Aug 25, 2026
17 checks passed
asf-gitbox-commits pushed a commit that referenced this pull request Aug 25, 2026
…ndTest

Reviewers: uros-b, anmolnar
Author: IvanKhanas
Closes #2442 from IvanKhanas/ZOOKEEPER-5080

(cherry picked from commit b1d1f47)
Signed-off-by: Andor Molnar <andor@cloudera.com>
@anmolnar

Copy link
Copy Markdown
Contributor

Merged to master and branch-3.9 branches.
Thanks @IvanKhanas !
I added you to ZooKeeper contributors in the jira and closed the ticket.

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