Skip to content

[Backport 2.x] Fix boundary condition in indexing pressure test#5179

Merged
Poojita-Raj merged 1 commit into2.xfrom
backport/backport-5168-to-2.x
Nov 9, 2022
Merged

[Backport 2.x] Fix boundary condition in indexing pressure test#5179
Poojita-Raj merged 1 commit into2.xfrom
backport/backport-5168-to-2.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport 3423f44 from #5168.

This updates the boundary condition in an assertion in two tests in
ShardIndexingPressureConcurrentExecutionTests. I could reliably
reproduce errors here by running:

```
./gradlew ':server:test' -Dtests.iters=10000 --tests "org.opensearch.index.ShardIndexingPressureConcurrentExecutionTests.testReplicaThreadedUpdateToShardLimits"
```

On every error the value that failed was exactly 0.95 and failed the
less than check. The change here is to accept 0.95, and also refactor
the test to give a better error message on failure.

Signed-off-by: Andrew Ross <andrross@amazon.com>

Signed-off-by: Andrew Ross <andrross@amazon.com>
(cherry picked from commit 3423f44)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@opensearch-trigger-bot opensearch-trigger-bot bot requested review from a team and reta as code owners November 9, 2022 18:42
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 9, 2022

Gradle Check (Jenkins) Run Completed with:

@Poojita-Raj Poojita-Raj merged commit aff2b1f into 2.x Nov 9, 2022
@github-actions github-actions bot deleted the backport/backport-5168-to-2.x branch November 9, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants