Skip to content

[BUG] org.opensearch.upgrades.IndexingIT.testIndexingWithSegRep flaky #12336

@peternied

Description

@peternied

Describe the bug

org.opensearch.upgrades.IndexingIT.testIndexingWithSegRep is flaky, jenkins logs.

Assertion is from this codeblock:

// Ensure there is result for replica copies before processing the result. This results in retry when there
// are not enough number of rows vs failing with IndexOutOfBoundsException
assertEquals(0, filteredList.size() % (replicaCount + 1));

Suppressed: java.lang.AssertionError: expected:<0> but was:<1>
  at org.junit.Assert.fail(Assert.java:89)
  at org.junit.Assert.failNotEquals(Assert.java:835)
  at org.junit.Assert.assertEquals(Assert.java:647)
  at org.junit.Assert.assertEquals(Assert.java:633)
  at org.opensearch.upgrades.IndexingIT.lambda$waitForSearchableDocs$0(IndexingIT.java:121)
  at org.opensearch.test.OpenSearchTestCase.assertBusy(OpenSearchTestCase.java:1106)
  ... 40 more

Related component

Indexing

To Reproduce

REPRODUCE WITH: ./gradlew ':qa:rolling-upgrade:v2.13.0#upgradedClusterTest' --tests "org.opensearch.upgrades.IndexingIT.testIndexingWithSegRep" -Dtests.seed=326EEB751FF1EA22 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ru-RU -Dtests.timezone=Africa/Timbuktu -Druntime.java=21

Expected behavior

Test pass consistently

Additional Details

Metadata

Metadata

Assignees

Labels

IndexingIndexing, Bulk Indexing and anything related to indexingIndexing:ReplicationIssues and PRs related to core replication framework eg segrepbugSomething isn't workingflaky-testRandom test failure that succeeds on second run

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions