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 Osborn Chan <oc...@shutterfly.com> on 2009/11/06 20:41:48 UTC

Solr Replication: How to restore data from last snapshot

Hi, 

I have followed Solr set up ReplicationHandler for index replication to slave.
Do anyone know how to restore corrupted index from snapshot in master, and force replication of the restored index to slave?


Thanks,

Osborn

Re: Solr Replication: How to restore data from last snapshot

Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Solr Replication: How to restore data from last snapshot
: References: <89...@DELMAIL.sapient.com>
:      <26...@talk.nabble.com>
:  <f4...@mail.gmail.com>
: In-Reply-To: <f4...@mail.gmail.com>

http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is "hidden" in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/Thread_hijacking



-Hoss


RE: Solr Replication: How to restore data from last snapshot

Posted by Osborn Chan <oc...@shutterfly.com>.
What happen if it is multiple core?

Thanks

-----Original Message-----
From: noble.paul@gmail.com [mailto:noble.paul@gmail.com] On Behalf Of Noble Paul ??????? ??????
Sent: Friday, November 06, 2009 10:49 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr Replication: How to restore data from last snapshot

if it is a single core you will have to restart the master

On Sat, Nov 7, 2009 at 1:55 AM, Osborn Chan <oc...@shutterfly.com> wrote:
> Thanks. But I have following use cases:
>
> 1) Master index is corrupted, but it didn't replicate to slave servers.
>        - In this case, I only need to restore to last snapshot.
> 2) Master index is corrupted, and it has replicated to slave servers.
>        - In this case, I need to restore to last snapshot, and make sure slave servers replicate the restored index from index server as well.
>
> Assuming both cases are in production environment, and I cannot shutdown the master and slave servers.
> Is there any rest API call or something else I can do without manually using linux command and restart?
>
> Thanks,
>
> Osborn
>
> -----Original Message-----
> From: Matthew Runo [mailto:matthew.runo@gmail.com]
> Sent: Friday, November 06, 2009 12:20 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr Replication: How to restore data from last snapshot
>
> If your master index is corrupt and it hasn't been replicated out, you
> should be able to shut down the server and remove the corrupted index
> files. Then copy the replicated index back onto the master and start
> everything back up.
>
> As far as I know, the indexes on the replicated slaves are exactly
> what you'd have on the master, so this method should work.
>
> --Matthew Runo
>
> On Fri, Nov 6, 2009 at 11:41 AM, Osborn Chan <oc...@shutterfly.com> wrote:
>> Hi,
>>
>> I have followed Solr set up ReplicationHandler for index replication to slave.
>> Do anyone know how to restore corrupted index from snapshot in master, and force replication of the restored index to slave?
>>
>>
>> Thanks,
>>
>> Osborn
>>
>



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

Re: Solr Replication: How to restore data from last snapshot

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@corp.aol.com>.
if it is a single core you will have to restart the master

On Sat, Nov 7, 2009 at 1:55 AM, Osborn Chan <oc...@shutterfly.com> wrote:
> Thanks. But I have following use cases:
>
> 1) Master index is corrupted, but it didn't replicate to slave servers.
>        - In this case, I only need to restore to last snapshot.
> 2) Master index is corrupted, and it has replicated to slave servers.
>        - In this case, I need to restore to last snapshot, and make sure slave servers replicate the restored index from index server as well.
>
> Assuming both cases are in production environment, and I cannot shutdown the master and slave servers.
> Is there any rest API call or something else I can do without manually using linux command and restart?
>
> Thanks,
>
> Osborn
>
> -----Original Message-----
> From: Matthew Runo [mailto:matthew.runo@gmail.com]
> Sent: Friday, November 06, 2009 12:20 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Solr Replication: How to restore data from last snapshot
>
> If your master index is corrupt and it hasn't been replicated out, you
> should be able to shut down the server and remove the corrupted index
> files. Then copy the replicated index back onto the master and start
> everything back up.
>
> As far as I know, the indexes on the replicated slaves are exactly
> what you'd have on the master, so this method should work.
>
> --Matthew Runo
>
> On Fri, Nov 6, 2009 at 11:41 AM, Osborn Chan <oc...@shutterfly.com> wrote:
>> Hi,
>>
>> I have followed Solr set up ReplicationHandler for index replication to slave.
>> Do anyone know how to restore corrupted index from snapshot in master, and force replication of the restored index to slave?
>>
>>
>> Thanks,
>>
>> Osborn
>>
>



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

RE: Solr Replication: How to restore data from last snapshot

Posted by Osborn Chan <oc...@shutterfly.com>.
Thanks. But I have following use cases:

1) Master index is corrupted, but it didn't replicate to slave servers.
	- In this case, I only need to restore to last snapshot.
2) Master index is corrupted, and it has replicated to slave servers.
	- In this case, I need to restore to last snapshot, and make sure slave servers replicate the restored index from index server as well.

Assuming both cases are in production environment, and I cannot shutdown the master and slave servers.
Is there any rest API call or something else I can do without manually using linux command and restart?

Thanks,

Osborn

-----Original Message-----
From: Matthew Runo [mailto:matthew.runo@gmail.com] 
Sent: Friday, November 06, 2009 12:20 PM
To: solr-user@lucene.apache.org
Subject: Re: Solr Replication: How to restore data from last snapshot

If your master index is corrupt and it hasn't been replicated out, you
should be able to shut down the server and remove the corrupted index
files. Then copy the replicated index back onto the master and start
everything back up.

As far as I know, the indexes on the replicated slaves are exactly
what you'd have on the master, so this method should work.

--Matthew Runo

On Fri, Nov 6, 2009 at 11:41 AM, Osborn Chan <oc...@shutterfly.com> wrote:
> Hi,
>
> I have followed Solr set up ReplicationHandler for index replication to slave.
> Do anyone know how to restore corrupted index from snapshot in master, and force replication of the restored index to slave?
>
>
> Thanks,
>
> Osborn
>

Re: Solr Replication: How to restore data from last snapshot

Posted by Matthew Runo <ma...@gmail.com>.
If your master index is corrupt and it hasn't been replicated out, you
should be able to shut down the server and remove the corrupted index
files. Then copy the replicated index back onto the master and start
everything back up.

As far as I know, the indexes on the replicated slaves are exactly
what you'd have on the master, so this method should work.

--Matthew Runo

On Fri, Nov 6, 2009 at 11:41 AM, Osborn Chan <oc...@shutterfly.com> wrote:
> Hi,
>
> I have followed Solr set up ReplicationHandler for index replication to slave.
> Do anyone know how to restore corrupted index from snapshot in master, and force replication of the restored index to slave?
>
>
> Thanks,
>
> Osborn
>