I notice that when a SPLISHARD operation finish, the solr.xml is not update
properly.

# Parent solr.xml:

<core numShards="2" name="test_shard1_replica1"
instanceDir="test_shard1_replica1" shard="shard1" collection="test"/>

# Children solr.xml:

<core name="test_shard1_0_replica1" shardState="construction"
instanceDir="test_shard1_0_replica1" shard="shard1_0" collection="test">
        <property name="shardRange" value="80000000-bfffffff"/>
</core>

<core name="test_shard1_1_replica1" shardState="construction"
instanceDir="test_shard1_1_replica1" shard="shard1_1" collection="test">
        <property name="shardRange" value="c0000000-ffffffff"/>
</core>


# Paren Clusterstate:
"shard1":{
    "range":"80000000-ffffffff",
    "state":"inactive",
    "replicas":{"192.168.2.18:8983_solr_test_shard1_replica1":{
        "state":"active",
        "base_url":"http://192.168.2.18:8983/solr";,
        "core":"test_shard1_replica1",
        "node_name":"192.168.2.18:8983_solr",
        "leader":"true"}}},

# Children Clusterstate:
"shard1_0":{
    "range":"80000000-bfffffff",
    "state":"active",
    "replicas":{"192.168.2.18:8983_solr_test_shard1_0_replica1":{
        "state":"active",
        "base_url":"http://192.168.2.18:8983/solr";,
        "core":"statistics-11_shard1_0_replica1",
        "node_name":"192.168.2.18:8983_solr",
        "leader":"true"}}},
"shard1_1":{
   "range":"c0000000-ffffffff",
   "state":"active",
   "replicas":{"192.168.2.18:8983_solr_test_shard1_1_replica1":{
       "state":"active",
       "base_url":"http://192.168.2.18:8983/solr";,
       "core":"statistics-11_shard1_1_replica1",
       "node_name":"192.168.2.18:8983_solr",
       "leader":"true"}}},

I only notice this because I did a restart and the nodes was show on cloud
graph as down.

The shards where I did a manual replication were written to the solr.xml
file as expected, but not at the time that I executed the CREATE command.

command: curl
'http://192.168.2.18:8983/solr/admin/cores?action=CREATE&name=test_shard2_0_replicaX&collection=test&shard=shard2_0'

Create replicaA -> solr.xml not write nothing about the replicaA.
Create replicaA -> solr.xml not write nothing about the replicaB, registered
data about the replicaA.

Is like I have a lag of 1 operation, this is normal?

/Yago



-----
Best regards
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Split-shard-doesn-t-persist-data-correctly-on-solr-xml-tp4093996.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to