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/02/17 06:46:57 UTC

Weird Solr Replication Slave out of sync

Hi All,

My master and slave index version and generation is the same
yet the index is not in sync because when I execute the same query 
on both master and slave I see old docs on slave which should not be there.

I also tried to fetch a specific indexversion on slave using 
command=fetchindex&indexversion=<latestMasterVersion>

This is very spooky because I do not get any errors on master or slave.
Also I see in the logs that the slave is polling the master every 15 mins 
I was able to find this issue only because I was looking at the specific old document.

Now I can manually delete the index folder on slave and restart my slave.
But I really want to find out what could be going on. Because these type of issues are going to 
be hard to find especially when there are on errors.

What could be happening. and how can I avoid this from happening ?


Thanks,
Summer


Re: Weird Solr Replication Slave out of sync

Posted by Dmitry Kan <so...@gmail.com>.
Hi,
This sounds quite strange. Do you see any error messages either in the solr
admin's replication page or in the master's OR slave's logs?

When we had issues with slave replicating from the master, they related to
slave running out of disk. I'm sure there could be a bunch of other reasons
for failed replication, but those should generally be evident in the logs.

On Tue, Feb 17, 2015 at 7:46 AM, Summer Shire <sh...@gmail.com> wrote:

> Hi All,
>
> My master and slave index version and generation is the same
> yet the index is not in sync because when I execute the same query
> on both master and slave I see old docs on slave which should not be there.
>
> I also tried to fetch a specific indexversion on slave using
> command=fetchindex&indexversion=<latestMasterVersion>
>
> This is very spooky because I do not get any errors on master or slave.
> Also I see in the logs that the slave is polling the master every 15 mins
> I was able to find this issue only because I was looking at the specific
> old document.
>
> Now I can manually delete the index folder on slave and restart my slave.
> But I really want to find out what could be going on. Because these type
> of issues are going to
> be hard to find especially when there are on errors.
>
> What could be happening. and how can I avoid this from happening ?
>
>
> Thanks,
> Summer
>
>


-- 
Dmitry Kan
Luke Toolbox: http://github.com/DmitryKey/luke
Blog: http://dmitrykan.blogspot.com
Twitter: http://twitter.com/dmitrykan
SemanticAnalyzer: www.semanticanalyzer.info