Skip to content

[test] Fixing flaky test CoordinatorEventManagerTest.testMetricsUpdatedImmediatelyOnStartup#3210

Open
vamossagar12 wants to merge 1 commit intoapache:mainfrom
vamossagar12:fluss-3188
Open

[test] Fixing flaky test CoordinatorEventManagerTest.testMetricsUpdatedImmediatelyOnStartup#3210
vamossagar12 wants to merge 1 commit intoapache:mainfrom
vamossagar12:fluss-3188

Conversation

@vamossagar12
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #3188

Brief change log

Fixes unstable test CoordinatorEventManagerTest.testMetricsUpdatedImmediatelyOnStartup by adding a retry to handle the brief window between metricsUpdateCount increment (inside the event processor) and the volatile field assignment (after
getResultFuture().get() in updateMetricsViaAccessContext).

I ran the tests 5 times once and 10 times the other time and the test passed on all 15 occasions.

Tests

N/A

@vamossagar12
Copy link
Copy Markdown
Contributor Author

@swuferhong , @wuchong please take a look at this CL which fixes the flaky test.

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.

[test] Unstable test CoordinatorEventManagerTest.testMetricsUpdatedImmediatelyOnStartup

1 participant