Solr 1.4.1. So, from the documentation at http://wiki.apache.org/solr/SolrReplication

I was wondering if I could get away without having any actual configuration in my slave at all. The replication handler is turned on, but if I'm going to manually trigger replication pulls while supplying the master URL manually with the command too, by:

command=fetchIndex&masterUrl=$solr_master

Then I was thinking, gee, maybe I don't need any slave config at all. That _appears_ to not be true. In such a situation, when I tell the slave to fetchIndex&masterUrl=$solr_master, the command gives a 200 OK.

But then I go and check /replication?command=details on the slave, I'm actually presented with an exception:

message null java.lang.NullPointerException at org.apache.solr.handler.ReplicationHandler.isPollingDisabled(ReplicationHandler.java:412) at

So I'm thinking this is probably becuase you actually can't get away with no slave config at all.

So:

1) Is this a bug? Maybe I did something I shoudn't have, but having command=details report a NullPointerException is probably not good, right? If someone who knows better agrees, I'll file it in JIRA?

2) Does anyone know what the minimal slave config is? If I plan to manually trigger replication pulls, and supply the masterUrl.... maybe just an empty <lst name="slave"></lst>. Or are there other parameters I have to set even though I don't plan to use them? (I do not want automatic polling, only manually triggered pulls). Anyone have any advice, or should I just trial and error?


Reply via email to