You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by gabriele renzi <rf...@gmail.com> on 2009/10/30 18:05:57 UTC

slave java replication connection issue in nightly (wrong url?)

hi everyone and sorry if this question is dumb, but I seem to be
unable to connect from a slave, with both are in a multicore setup

I configured the replication like

<requestHandler name="/replication" class="solr.ReplicationHandler" >
    <lst name="master">
      <str name="enable">${enable.master:false}</str>
      <str name="replicateAfter">commit</str>
      <str name="replicateAfter">startup</str>
      <str name="backupAfter">optimize</str>
      <str name="confFiles">schema.xml</str>
    </lst>
    <lst name="slave">
      <str name="enable">${enable.slave:false}</str>
      <str name="masterUrl">http://master.solr.lan:8080/solr/core/replication</str>
      <str name="pollInterval">00:00:60</str>
    </lst>
</requestHandler>

And it seems that both master and slave loaded the configuration
correctly e.g. in the admin interface I see
* /replication added
* my config values correctly loaded
* replicationEnabled = true in master
* isSlave and isMaster correctly set on both
* the http://master.solr.lan:8080/solr/core/replication gives me
"status ok" when accessed as a GET (curl) from  the slave machine

yet, when I check from the slave's admin interface it says that
http://master.solr.lan:8080/solr/core/replication is unreachable, and
from the statistics I see
isReplicating : false

and in the logs
SEVERE: Master at: http://master.solr.lan:8080/solr/core/replication
is not available. Index fetch failed. Exception: Request failed
 for the url org.apache.commons.httpclient.methods.PostMethod@48f3d27

I'm thinking maybe I should have configured the url differently, but
frankly I don't have a clue.

Could someone point out what is the obvious error I'm doing ? :)

Additional informations:
* slave nightly is from today, master from a few days ago
* both machines are 64 bit and running on linux
* java -version is
Java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
* solr is deployed in a tomcat6 container

Re: slave java replication connection issue in nightly (wrong url?)

Posted by gabriele renzi <rf...@gmail.com>.
ah, problem solved, it was due (apparently) caching an old dns entry
sorry for the noise :)