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 Summer Shire <sh...@gmail.com> on 2015/06/15 06:40:08 UTC
invalid index version and generation
Hi all,
Every time I optimize my index with maxSegment=2 after some time the replication fails to get filelist for a given generation. Looks like the index version and generation count gets messed up.
(If the maxSegment=1 this never happens. I am able to successfully reproduce this by optimizing with maxSegment=2. I am using solr 4.7.2)
eg: SnapPuller - No files to download for index generation: 67
Here is what I see when I curl the commands on my terminal.
I also tried to modify the snapPullers fetchFileList(long gen) method to get indexVersion and pass that as a param but that did not help either.
Also my slave gen/version is always smaller than master.
What could be going on? any idea ?
Thanks,
Summer
$ curl "http://localhost:6600/solr/main0/replication?command=indexversion"
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">0</int></lst><long name="indexversion">1434341174641</long><long name="generation">67</long>
</response>
$ curl "http://localhost:6600/solr/main0/replication?command=filelist&generation=67&indexversion=1434341174641"
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">0</int></lst><str name="status">invalid index generation</str>
</response>
Re: invalid index version and generation
Posted by Summer Shire <sh...@gmail.com>.
Anyone have any suggestions on things I could try ? Does it seem like a solr bug ?
> On Jun 14, 2015, at 9:40 PM, Summer Shire <sh...@gmail.com> wrote:
>
> Hi all,
>
> Every time I optimize my index with maxSegment=2 after some time the replication fails to get filelist for a given generation. Looks like the index version and generation count gets messed up.
> (If the maxSegment=1 this never happens. I am able to successfully reproduce this by optimizing with maxSegment=2. I am using solr 4.7.2)
> eg: SnapPuller - No files to download for index generation: 67
>
> Here is what I see when I curl the commands on my terminal.
> I also tried to modify the snapPullers fetchFileList(long gen) method to get indexVersion and pass that as a param but that did not help either.
> Also my slave gen/version is always smaller than master.
>
> What could be going on? any idea ?
>
> Thanks,
> Summer
>
> $ curl "http://localhost:6600/solr/main0/replication?command=indexversion <http://localhost:6600/solr/main0/replication?command=indexversion>"
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">0</int><int name="QTime">0</int></lst><long name="indexversion">1434341174641</long><long name="generation">67</long>
> </response>
>
> $ curl "http://localhost:6600/solr/main0/replication?command=filelist&generation=67&indexversion=1434341174641 <http://localhost:6600/solr/main0/replication?command=filelist&generation=67&indexversion=1434341174641>"
> <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">0</int><int name="QTime">0</int></lst><str name="status">invalid index generation</str>
> </response>