Skip to content

Fix: org.opensearch.clustermanager.ClusterManagerTaskThrottlingIT is flaky.#5152

Merged
Poojita-Raj merged 1 commit intoopensearch-project:mainfrom
dblock:fix-5083
Nov 8, 2022
Merged

Fix: org.opensearch.clustermanager.ClusterManagerTaskThrottlingIT is flaky.#5152
Poojita-Raj merged 1 commit intoopensearch-project:mainfrom
dblock:fix-5083

Conversation

@dblock
Copy link
Copy Markdown
Member

@dblock dblock commented Nov 8, 2022

Signed-off-by: dblock dblock@dblock.org

Description

The test creates a latch = number of requests, then every time a request finishes decrements the latch. For all failures it increments a counter. When the latch is at zero, it checks the counter. The counter was incremented after the latch was released, before the counter had a chance to be incremented one last time.

Issues Resolved

Closes #5083.

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.

…flaky.

Signed-off-by: dblock <dblock@dblock.org>
@dblock dblock requested review from a team and reta as code owners November 8, 2022 19:33
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 8, 2022

Gradle Check (Jenkins) Run Completed with:

@Poojita-Raj Poojita-Raj merged commit 88757b4 into opensearch-project:main Nov 8, 2022
@dblock dblock deleted the fix-5083 branch November 8, 2022 20:35
@dblock dblock added the backport 2.x Backport to 2.x branch label Nov 8, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 8, 2022
…flaky. (#5152)

Signed-off-by: dblock <dblock@dblock.org>

Signed-off-by: dblock <dblock@dblock.org>
(cherry picked from commit 88757b4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dblock dblock added the backport 2.4 Backport to 2.4 branch label Nov 8, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 8, 2022
…flaky. (#5152)

Signed-off-by: dblock <dblock@dblock.org>

Signed-off-by: dblock <dblock@dblock.org>
(cherry picked from commit 88757b4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Poojita-Raj pushed a commit that referenced this pull request Nov 8, 2022
…hrottlingIT is flaky. (#5153)

* Fix: org.opensearch.clustermanager.ClusterManagerTaskThrottlingIT is flaky. (#5152)

Signed-off-by: dblock <dblock@dblock.org>

Signed-off-by: dblock <dblock@dblock.org>
(cherry picked from commit 88757b4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix race condition in testThrottlingForSingleNode.

Signed-off-by: dblock <dblock@dblock.org>

Signed-off-by: dblock <dblock@dblock.org>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: dblock <dblock@dblock.org>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 9, 2022
…hrottlingIT is flaky. (#5153)

* Fix: org.opensearch.clustermanager.ClusterManagerTaskThrottlingIT is flaky. (#5152)

Signed-off-by: dblock <dblock@dblock.org>

Signed-off-by: dblock <dblock@dblock.org>
(cherry picked from commit 88757b4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix race condition in testThrottlingForSingleNode.

Signed-off-by: dblock <dblock@dblock.org>

Signed-off-by: dblock <dblock@dblock.org>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: dblock <dblock@dblock.org>
(cherry picked from commit 1cc50af)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dblock added a commit that referenced this pull request Nov 9, 2022
…hrottlingIT is flaky. (#5153) (#5171)

* Fix: org.opensearch.clustermanager.ClusterManagerTaskThrottlingIT is flaky. (#5152)

Signed-off-by: dblock <dblock@dblock.org>

Signed-off-by: dblock <dblock@dblock.org>
(cherry picked from commit 88757b4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix race condition in testThrottlingForSingleNode.

Signed-off-by: dblock <dblock@dblock.org>

Signed-off-by: dblock <dblock@dblock.org>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: dblock <dblock@dblock.org>
(cherry picked from commit 1cc50af)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Signed-off-by: dblock <dblock@dblock.org>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: dblock <dblock@dblock.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.x Backport to 2.x branch backport 2.4 Backport to 2.4 branch skip-changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] ClusterManagerTaskThrottlingIT.testTimeoutWhileThrottling is flaky

3 participants