Skip to content

Reproducible failure in SearchableSnapshotDirectoryTests.testDirectoryReader #51326

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

Closed
DaveCTurner opened this issue Jan 22, 2020 · 2 comments
Closed
Assignees
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test-failure Triaged test failures from CI

Comments

@DaveCTurner
Copy link
Contributor

I got a reproducible test failure on 5efa91f, which is part of a PR commit but which I don't think has changed anything that would cause this:

org.elasticsearch.index.store.SearchableSnapshotDirectoryTests > testDirectoryReader FAILED
    java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
        at __randomizedtesting.SeedInfo.seed([7CFB623C04D13A8B:9EFEC0891F87DCC5]:0)
        at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
        at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
        at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
        at java.base/java.util.Objects.checkIndex(Objects.java:373)
        at java.base/java.util.ArrayList.get(ArrayList.java:425)
        at java.base/java.util.Collections$UnmodifiableList.get(Collections.java:1310)
        at org.elasticsearch.index.store.SearchableSnapshotDirectoryTests.lambda$testDirectoryReader$9(SearchableSnapshotDirectoryTests.java:148)
        at org.elasticsearch.index.store.SearchableSnapshotDirectoryTests.testDirectories(SearchableSnapshotDirectoryTests.java:315)
        at org.elasticsearch.index.store.SearchableSnapshotDirectoryTests.testDirectoryReader(SearchableSnapshotDirectoryTests.java:139)

REPRODUCE WITH ./gradlew ':x-pack:plugin:searchable-snapshots:test' --tests "org.elasticsearch.index.store.SearchableSnapshotDirectoryTests.testDirectoryReader" -Dtests.seed=7CFB623C04D13A8B:9EFEC0891F87DCC5 -Dtests.security.manager=true -Dtests.jvms=4 -Dtests.locale=hi -Dtests.timezone=SystemV/HST10 -Dcompiler.java=13
@DaveCTurner DaveCTurner added :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test-failure Triaged test failures from CI labels Jan 22, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

tlrx added a commit that referenced this issue Jan 28, 2020
This commit fixes the SearchableSnapshotDirectoryTests.testDirectoryReader 
which fails on empty/fully deleted segments. The test now iterates on all 
LeafReader to verify that they have the same number of docs. It also check 
all fields within the segment.

Closes #51326
@tlrx
Copy link
Member

tlrx commented Feb 5, 2020

Closed by #51343

@tlrx tlrx closed this as completed Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

3 participants