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

Fix issue with tombstones matching active indices in cluster state #18058

Closed
wants to merge 1 commit into from

Conversation

abeyad
Copy link

@abeyad abeyad commented Apr 29, 2016

When checking if an index tombstone can be applied, use both the index name and uuid because the cluster state may contain an active index of the same name (but different uuid).

Closes #18054

@abeyad
Copy link
Author

abeyad commented Apr 29, 2016

@jasontedor Perhaps you'd like to review? The test I wrote passes even before making the change in IndicesService. The reason being, the IllegalStateException that is thrown is not propagated anywhere that is visible in the IT test. Is there a general mechanism to retrieve such exceptions in the IT tests? If not, I'll probably have to create a different kind of test.

@jasontedor
Copy link
Member

LGTM. Thanks @abeyad.

name and uuid because the cluster state may contain an active index of
the same name (but different uuid).

Closes elastic#18058
Closes elastic#18054
@abeyad abeyad force-pushed the bug/cannot-delete-index branch from 189ef0e to 4511382 Compare April 29, 2016 15:37
@abeyad
Copy link
Author

abeyad commented Apr 29, 2016

@jasontedor Changed the test to go in IndicesServiceTests at the unit tests level.

@jasontedor
Copy link
Member

Changed the test to go in IndicesServiceTests at the unit tests level.

Much better. 😄 LGTM.

@abeyad abeyad closed this in a31b94e Apr 29, 2016
@clintongormley clintongormley added :Distributed Indexing/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. and removed :Cluster labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed Indexing/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. v5.0.0-alpha3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants