Error while trying to index doc on replica

2014-01-15 Thread aabreur
I have a collection that has only one shard. There are two nodes of this shard, a leader and a replica. When trying to index a doc to the leader, everything goes OK: POST xx.x.xx.x/solr/ds_target/update?commit=true { add: { doc: { key1: value1, key2: value2 } } }

Re: Error while trying to index doc on replica

2014-01-15 Thread aabreur
Thanks Erick.. When tailing the log i get several similar errors: INFO - 2014-01-15 18:28:50.250; org.apache.solr.update.processor.LogUpdateProcessor; [ds_target] webapp=/solr path=/update params={distrib.from=http://172.0.60.97:80/solr/ds_target/update.distrib=TOLEADERwt=javabinversion=2} {} 0

Re: Error while trying to index doc on replica

2014-01-15 Thread aabreur
Solved. It was a 'misconfigured' solrconfig.xml Had this: requestHandler name=/update class=solr.JsonUpdateRequestHandler/ Fixed backing to default and adding a path for json updates: requestHandler name=/update class=solr.UpdateRequestHandler / requestHandler name=/update/json

Leader Election, when?

2013-07-11 Thread aabreur
I have a working Zookeeper ensemble running with 3 instances and also a solrcloud cluster with some solr instances. I've created a collection with settings to 2 shards. Then i: create 1 core on instance1 create 1 core on instance2 create 1 core on instance1 create 1 core on instance2 Just to