Skip to content

Instantly share code, notes, and snippets.

@lukas-vlcek
Created February 6, 2013 12:52
Show Gist options
  • Save lukas-vlcek/4722341 to your computer and use it in GitHub Desktop.
Save lukas-vlcek/4722341 to your computer and use it in GitHub Desktop.
Elasticsearch 0.21.0.Beta1 issue
# My version of ES build
git log --oneline -n 1
ed09ba0 Improve stability of RecoveryPercolatorTests
# make sure fresh instance is started
ps -ef | grep elasticsearch
rm -rf data/ logs/
./bin/elasticsearch
# after the node is started and ready
curl localhost:9200
{
"ok" : true,
"status" : 200,
"name" : "Adam II",
"version" : {
"number" : "0.21.0.Beta1",
"snapshot_build" : true
},
"tagline" : "You Know, for Search"
}
curl -XPOST 'http://localhost:9200/twitter_1/tweet' -d '{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}'
# {"ok":true,"_index":"twitter_1","_type":"tweet","_id":"fREv50zNQLqAOrfW7QGhWg","_version":1}
curl localhost:9200/_template/common -d'
{
"template": "*",
"settings": {
"number_of_shards": 3,
"number_of_replicas": 3
}
}'
# {"ok":true,"acknowledged":true}
curl -XPOST 'http://localhost:9200/twitter_2/tweet' -d '{
"user" : "kimchy",
"post_date" : "2009-11-15T14:12:12",
"message" : "trying out Elastic Search"
}'
# hangs and after 1min...
{"error":"UnavailableShardsException[[twitter_2][1] [4] shardIt, [1] active : Timeout waiting for [1m], request: index {[twitter_2][tweet][EiiJdZ8pROCerFiZR4g21Q], source[{\n \"user\" : \"kimchy\",\n \"post_date\" : \"2009-11-15T14:12:12\",\n \"message\" : \"trying out Elastic Search\"\n}]}]","status":503}
@lukas-vlcek
Copy link
Author

Not an issue, see elastic/elasticsearch#2623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment