Skip to content

Wait for concurrent reads in ESIndexInputTestCase #51425

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

Conversation

DaveCTurner
Copy link
Contributor

Today ESIndexInputTestCase#randomReadAndSlice performs some reads on
background threads, but does not necessarily wait for these reads to finish.
It's possible that the underlying IndexInput may be closed before these reads
complete, causing them to fail. This commit fixes that.

Today `ESIndexInputTestCase#randomReadAndSlice` performs some reads on
background threads, but does not necessarily wait for these reads to finish.
It's possible that the underlying `IndexInput` may be closed before these reads
complete, causing them to fail.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Jan 24, 2020
@DaveCTurner DaveCTurner requested a review from tlrx January 24, 2020 15:12
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks David! I was also digging it.

@DaveCTurner
Copy link
Contributor Author

@elasticmachine please run elasticsearch-ci/2

@DaveCTurner DaveCTurner merged commit ffc5a82 into elastic:feature/searchable-snapshots Jan 24, 2020
@DaveCTurner DaveCTurner deleted the 2020-01-23-fix-indexinputtestcase-returning-before-reading-complete branch January 24, 2020 22:06
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 Issues or PRs that are addressing/adding tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants