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 Ron Ellis <ro...@benetech.org> on 2009/08/26 20:23:00 UTC

Problem using replication in 8/25/09 nightly build of 1.4

Hi Everyone,

When trying to utilize the new HTTP based replication built into Solr 1.4 I
encounter a problem. When I view the replication admin page on the slave all
of the master values are null i.e. Replicatable Index Version:null,
Generation: null | Latest Index Version:null, Generation: null. Despite
these missing values the two seem to be talking over HTTP successfully (if I
shutdown the master the slave replication page starts exploding with a NPE).

When I hit http://solr/replication?command=indexversion&wt=xml I get the
following...

<response>
-
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">13</int>
</lst>
<long name="indexversion">0</long>
<long name="generation">0</long>
</response>

However in the admin/replication UI on the master I see...

**
 Index Version: 1250525534711, Generation: 1778
Any idea what I'm doing wrong or how I could begin to diagnose? I am using
the 8/25 nightly build of solr with the example solrconfig.xml provided. The
only modifications to the config have been to uncomment the master/rslave
replication sections and remove the data directory location line so it falls
back to solr.home/data. Also if it's relevant this index was originally
created in solr 1.3.

Thanks,
Ron Ellis

Re: Problem using replication in 8/25/09 nightly build of 1.4

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
On Thu, Aug 27, 2009 at 12:27 PM, Shalin Shekhar
Mangar<sh...@gmail.com> wrote:
> On Wed, Aug 26, 2009 at 11:53 PM, Ron Ellis <ro...@benetech.org> wrote:
>
>> Hi Everyone,
>>
>> When trying to utilize the new HTTP based replication built into Solr 1.4 I
>> encounter a problem. When I view the replication admin page on the slave
>> all
>> of the master values are null i.e. Replicatable Index Version:null,
>> Generation: null | Latest Index Version:null, Generation: null.
>
>
> If the master has just been started, it has no index which can be replicated
> to slave. If you do a commit on master then a replicateable index version
> will be shown on the slave and replication will proceed. Alternately, you
> can add the following to master configuration
>
> <str name="replicateAfter">startup</str>
>
>
>> Despite
>> these missing values the two seem to be talking over HTTP successfully (if
>> I
>> shutdown the master the slave replication page starts exploding with a
>> NPE).
>
>
> The slave replication page should not show a NPE if the master is down. I'll
> look into it

This should .be fixed in the trunk.
>
>
>>
>> When I hit http://solr/replication?command=indexversion&wt=xml I get the
>> following...
>>
>> <response>
>> -
>> <lst name="responseHeader">
>> <int name="status">0</int>
>> <int name="QTime">13</int>
>> </lst>
>> <long name="indexversion">0</long>
>> <long name="generation">0</long>
>> </response>
>>
>> However in the admin/replication UI on the master I see...
>>
>> **
>>  Index Version: 1250525534711, Generation: 1778
>> Any idea what I'm doing wrong or how I could begin to diagnose? I am using
>> the 8/25 nightly build of solr with the example solrconfig.xml provided.
>> The
>> only modifications to the config have been to uncomment the master/rslave
>> replication sections and remove the data directory location line so it
>> falls
>> back to solr.home/data. Also if it's relevant this index was originally
>> created in solr 1.3.
>>
>
> I think that should be fine. I assume both master and slave are same Solr
> version 1.4?
>
> --
> Regards,
> Shalin Shekhar Mangar.
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Re: Problem using replication in 8/25/09 nightly build of 1.4

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Wed, Aug 26, 2009 at 11:53 PM, Ron Ellis <ro...@benetech.org> wrote:

> Hi Everyone,
>
> When trying to utilize the new HTTP based replication built into Solr 1.4 I
> encounter a problem. When I view the replication admin page on the slave
> all
> of the master values are null i.e. Replicatable Index Version:null,
> Generation: null | Latest Index Version:null, Generation: null.


If the master has just been started, it has no index which can be replicated
to slave. If you do a commit on master then a replicateable index version
will be shown on the slave and replication will proceed. Alternately, you
can add the following to master configuration

<str name="replicateAfter">startup</str>


> Despite
> these missing values the two seem to be talking over HTTP successfully (if
> I
> shutdown the master the slave replication page starts exploding with a
> NPE).


The slave replication page should not show a NPE if the master is down. I'll
look into it.


>
> When I hit http://solr/replication?command=indexversion&wt=xml I get the
> following...
>
> <response>
> -
> <lst name="responseHeader">
> <int name="status">0</int>
> <int name="QTime">13</int>
> </lst>
> <long name="indexversion">0</long>
> <long name="generation">0</long>
> </response>
>
> However in the admin/replication UI on the master I see...
>
> **
>  Index Version: 1250525534711, Generation: 1778
> Any idea what I'm doing wrong or how I could begin to diagnose? I am using
> the 8/25 nightly build of solr with the example solrconfig.xml provided.
> The
> only modifications to the config have been to uncomment the master/rslave
> replication sections and remove the data directory location line so it
> falls
> back to solr.home/data. Also if it's relevant this index was originally
> created in solr 1.3.
>

I think that should be fine. I assume both master and slave are same Solr
version 1.4?

-- 
Regards,
Shalin Shekhar Mangar.