lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yury Kats (JIRA)" <>
Subject [jira] [Commented] (SOLR-2326) Replication command indexversion fails to return index version
Date Wed, 10 Aug 2011 14:19:27 GMT


Yury Kats commented on SOLR-2326:

OK, after some troubleshooting, my case is more obscure, but exposes the same problem.

I have a "master" core with an index. Replication is configured after startup and after commit.
I start Solr and ReplicationHandler reports correct information. 
"indexversion" is non-zero and "details" shows me a filelist for a specific index generation.
All is well, replication is running fine.

Now, my application RELOADs the "master" core (either by using /admin/cores?action=RELOAD
or by using action=CREATE to recreate the same core in the same place. In both cases the index
is preserved).

Once the core is RELOADed, replication "details" still shows correct indexversion and generation,
but the filelist is gone. And once a new commit happens on the RELOADed core, "indexversion"
command starts reporting zero and never recovers. 

Therefore replication stops for good. The only way to make it replicate again is to restart

> Replication command indexversion fails to return index version
> --------------------------------------------------------------
>                 Key: SOLR-2326
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>         Environment: Branch 3x latest
>            Reporter: Eric Pugh
>            Assignee: Mark Miller
>             Fix For: 3.4, 4.0
> To test this, I took the /example/multicore/core0 solrconfig and added a simple replication
>   <requestHandler name="/replication" class="solr.ReplicationHandler" >
>       <lst name="master">
>         <str name="replicateAfter">commit</str>
>         <str name="replicateAfter">startup</str>
>         <str name="confFiles">schema.xml</str>
>       </lst>
>   </requestHandler>
> When I query the handler for details I get back the indexVersion that I expect: http://localhost:8983/solr/core0/replication?command=details&wt=json&indent=true
> But when I ask for just the indexVersion I get back a 0, which prevent the slaves from
pulling updates: http://localhost:8983/solr/core0/replication?command=indexversion&wt=json&indent=true

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message