Created
July 10, 2013 20:58
-
-
Save nik9000/5970277 to your computer and use it in GitHub Desktop.
Curl recreation of issue causing index to be un-openable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XDELETE "http://localhost:9200/test_close?pretty=true" | |
# Create an index with a bunch of shards which should take a while | |
curl -XPOST "http://localhost:9200/test_close?pretty=true" -d '{ | |
"settings": { | |
"number_of_shards": 1024, | |
"number_of_replicas": 3 | |
} | |
}' | |
# Close the index real fast | |
curl -XPOST "http://localhost:9200/test_close/_close?pretty=true" | |
# Wait a bit and open it | |
sleep 2 | |
curl -XPOST "http://localhost:9200/test_close/_open?pretty=true" | |
watch -d curl -s -XGET "http://localhost:9200/_cluster/health?pretty=true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment