Skip to content

[Backport 1.x] Fix boundary condition in indexing pressure test#5180

Merged
andrross merged 1 commit into
1.xfrom
backport/backport-5168-to-1.x
Nov 9, 2022
Merged

[Backport 1.x] Fix boundary condition in indexing pressure test#5180
andrross merged 1 commit into
1.xfrom
backport/backport-5168-to-1.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:43
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 9, 2022

Gradle Check (Jenkins) Run Completed with:

@andrross andrross merged commit 96d36ae into 1.x Nov 9, 2022
@github-actions github-actions Bot deleted the backport/backport-5168-to-1.x branch November 9, 2022 19:13
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