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

[BUG] Test failure in org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testShardAlreadyReplicating #3872

Closed
tlfeng opened this issue Jul 13, 2022 · 2 comments
Assignees
Labels
bug Something isn't working >test-failure Test failure from CI, local build, etc.

Comments

@tlfeng
Copy link
Collaborator

tlfeng commented Jul 13, 2022

Describe the bug
First seen in PR #3863 (comment)

REPRODUCE WITH: ./gradlew ':server:test' --tests "org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testShardAlreadyReplicating" -Dtests.seed=5A433E181EF43D3D -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=ar-BH -Dtests.timezone=Mexico/General -Druntime.java=17

org.opensearch.indices.replication.SegmentReplicationTargetServiceTests > testShardAlreadyReplicating FAILED
    java.lang.AssertionError: can't move replication to stage [DONE]. current stage: [INIT] (expected [REPLICATING])
        at __randomizedtesting.SeedInfo.seed([5A433E181EF43D3D:799ABB039433F434]:0)
        at org.opensearch.indices.replication.SegmentReplicationState.validateAndSetStage(SegmentReplicationState.java:88)
        at org.opensearch.indices.replication.SegmentReplicationState.setStage(SegmentReplicationState.java:107)
        at org.opensearch.indices.replication.SegmentReplicationTarget.onDone(SegmentReplicationTarget.java:87)
        at org.opensearch.indices.replication.common.ReplicationTarget.markAsDone(ReplicationTarget.java:143)
        at org.opensearch.indices.replication.SegmentReplicationTargetServiceTests.testShardAlreadyReplicating(SegmentReplicationTargetServiceTests.java:139)

To Reproduce
The test failure in the method testShardAlreadyReplicating can be reproduced by running the test cases in the whole class.
The either random seed can reproduce the test failure.
./gradlew ':server:test' --tests "org.opensearch.indices.replication.SegmentReplicationTargetServiceTests" -Dtests.seed=5A433E181EF43D3D
./gradlew ':server:test' --tests "org.opensearch.indices.replication.SegmentReplicationTargetServiceTests" -Dtests.seed=9A5D3217135E5052

Expected behavior
Test passes.

Plugins
none.

Screenshots
none.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
none.

@tlfeng tlfeng added bug Something isn't working untriaged >test-failure Test failure from CI, local build, etc. and removed untriaged labels Jul 13, 2022
@dreamer-89
Copy link
Member

Another occurence
#3863

@dreamer-89
Copy link
Member

Duplicate of #8928. Closing in favour of #8928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working >test-failure Test failure from CI, local build, etc.
Projects
None yet
Development

No branches or pull requests

2 participants