Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Segment Replication] [BUG] SegmentReplicationTargetServiceTests.testReplicationOnDone flaky test failure #4268

Closed
dreamer-89 opened this issue Aug 19, 2022 · 1 comment
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run

Comments

@dreamer-89
Copy link
Member

Describe the bug
I have seen this issue on CI server multiple times. This test might succeeding on retries but need to make it more consistent.

e.g. https://build.ci.opensearch.org/job/gradle-check/1943

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testReplicationOnDone" -Dtests.seed=7C5D31ACA05B2F46 -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=fi-FI -Dtests.timezone=America/Tortola -Druntime.java=17

org.opensearch.indices.replication.SegmentReplicationTargetServiceTests > testReplicationOnDone FAILED
    org.mockito.exceptions.verification.TooFewActualInvocations: 
    segmentReplicationTargetService.onNewCheckpoint(
        ReplicationCheckpoint{shardId=[index][0], primaryTerm=40, segmentsGen=2, seqNo=-1, version=7},
        <any>
    );
    Wanted 2 times:
    -> at org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testReplicationOnDone(SegmentReplicationTargetServiceTests.java:257)
    But was 1 time:
    -> at org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testReplicationOnDone(SegmentReplicationTargetServiceTests.java:251)
        at app//org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testReplicationOnDone(SegmentReplicationTargetServiceTests.java:257)

    com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught exception in thread: Thread[id=152, name=opensearch[org.opensearch.indices.replication.SegmentReplicationTargetServiceTests][generic][T#1], state=RUNNABLE, group=TGRP-SegmentReplicationTargetServiceTests]
@dreamer-89 dreamer-89 added bug Something isn't working untriaged labels Aug 19, 2022
@owaiskazi19 owaiskazi19 added flaky-test Random test failure that succeeds on second run and removed untriaged labels Aug 19, 2022
@mch2
Copy link
Member

mch2 commented Nov 8, 2022

Closing - this test was replaced in #4225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run
Projects
Status: Done
Development

No branches or pull requests

3 participants