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

Only ack index store deletion on data nodes #9672

Closed
wants to merge 2 commits into from

Conversation

bleskes
Copy link
Contributor

@bleskes bleskes commented Feb 12, 2015

When an index is deleted we wait on all nodes to ack the delete. Data nodes are expected to both ack the remove of the index from their IndicesService and also the deletion of the store from disk. At the moment all nodes sends this ack which causes wrong counting on the master side. On top of this, we currently have an unneeded WARN message in the logs when client nodes try to acquire locks but do not have a data folder.

Relates to #9605

When an index is deleted we wait on all nodes to ack the delete. Data nodes are expected to both ack the remove of the index from their IndicesService and also the deletion of the store from disk. At the moment all nodes sends this ack which causes wrong counting on the master side. On top of this, we currently have an unneeded WARN message in the logs when client nodes try to acquire locks but do not have a data folder.

Relates to elastic#9605
@bleskes
Copy link
Contributor Author

bleskes commented Feb 13, 2015

@s1monw can you have a look?

@s1monw
Copy link
Contributor

s1monw commented Feb 13, 2015

if we don't need to ack do we need to fire up the threads at all? can we do the check earlier?

@bleskes
Copy link
Contributor Author

bleskes commented Feb 13, 2015

a very valid point. Changing.

@s1monw
Copy link
Contributor

s1monw commented Feb 13, 2015

LGTM

@bleskes
Copy link
Contributor Author

bleskes commented Feb 13, 2015

thx

bleskes added a commit to bleskes/elasticsearch that referenced this pull request Feb 13, 2015
When an index is deleted we wait on all nodes to ack the delete. Data nodes are expected to both ack the remove of the index from their IndicesService and also the deletion of the store from disk. At the moment all nodes sends this ack which causes wrong counting on the master side. On top of this, we currently have an unneeded WARN message in the logs when client nodes try to acquire locks but do not have a data folder.

Relates to elastic#9605

Closes elastic#9672
@bleskes bleskes closed this in 51ba120 Feb 13, 2015
@bleskes bleskes deleted the store_ack_on_none_data_nodes branch February 13, 2015 09:40
@clintongormley clintongormley added :Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. and removed review labels Mar 19, 2015
@clintongormley clintongormley changed the title Internal: only ack index store deletion on data nodes Only ack index store deletion on data nodes Jun 8, 2015
@clintongormley clintongormley added :Distributed/Engine Anything around managing Lucene and the Translog in an open shard. and removed :Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. 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/Engine Anything around managing Lucene and the Translog in an open shard. v1.5.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants