Skip to content

Acknowledge index deletion requests based on standard cluster state acknowledgment#18602

Merged
ywelsch merged 1 commit intoelastic:masterfrom
ywelsch:fix/ack-deleteindex-request
Jun 1, 2016
Merged

Acknowledge index deletion requests based on standard cluster state acknowledgment#18602
ywelsch merged 1 commit intoelastic:masterfrom
ywelsch:fix/ack-deleteindex-request

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented May 26, 2016

Index deletion requests currently use a custom acknowledgement mechanism that wait for the data nodes to actually delete the data before acknowledging the request to the client. This was initially put into place as a new index with same name could only be created if the old index was wiped as we used the index name as data folder on the data nodes. With PR #16442, we now use the index uuid as folder name which avoids collision between indices that are named the same (deleted and recreated). This allows us to get rid of the custom acknowledgment mechanism altogether and rely on the standard cluster state-based acknowledgment instead.

Closes #18558

@bleskes
Copy link
Copy Markdown
Contributor

bleskes commented May 30, 2016

@ywelsch and I talked about it offline, discussing the fact that this change uses two ack mechanism layered on top of each other (with two futures, two timeouts etc.) which makes things complex. We are currently evaluating whether specific index store deletion acks are needed now that we have uuids as folder names and based on that decide whether we want to invest more time here or just move to the standard cluster state based ack-ing.

@ywelsch ywelsch force-pushed the fix/ack-deleteindex-request branch from aa82f16 to 6373304 Compare May 31, 2016 16:30
@ywelsch
Copy link
Copy Markdown
Contributor Author

ywelsch commented May 31, 2016

@bleskes I've updated the PR by removing the custom ack mechanism and relying only on the standard cluster state ack.

@bleskes
Copy link
Copy Markdown
Contributor

bleskes commented Jun 1, 2016

LGTM. Best stats ever. Can you update the PR description/title?

@ywelsch ywelsch changed the title Acknowledge index deletion requests only after cluster state acknowledgment Acknowledge index deletion requests based on standard cluster state acknowledgment Jun 1, 2016
@ywelsch ywelsch merged commit bdd1d07 into elastic:master Jun 1, 2016
@ywelsch
Copy link
Copy Markdown
Contributor Author

ywelsch commented Jun 1, 2016

Thanks @bleskes! I've updated title/description.

ywelsch added a commit to ywelsch/elasticsearch that referenced this pull request Jun 1, 2016
ywelsch added a commit that referenced this pull request Jun 1, 2016
ywelsch added a commit to ywelsch/elasticsearch that referenced this pull request Jun 6, 2016
Triggering the pending deletes logic was accidentally removed in the clean up PR elastic#18602.
ywelsch added a commit that referenced this pull request Jun 6, 2016
Triggering the pending deletes logic was accidentally removed in the clean up PR #18602.
@clintongormley clintongormley added :Distributed/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/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. v5.0.0-alpha4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants