[ 
https://issues.apache.org/jira/browse/SOLR-4471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13584390#comment-13584390
 ] 

Andre Charton commented on SOLR-4471:
-------------------------------------

For me patch looks good, together with 4413 replication in solr 4.x is working. 
Thanks for that ( especially from network team, because angry about heavy 
network usage during replications)!

@Helder try:
{noformat:title=build script to apply patches in solr, copy content in build.sh 
an run - may it works for you}
mkdir patches
cd patches
wget https://issues.apache.org/jira/secure/attachment/12570408/SOLR-4471.patch
wget https://issues.apache.org/jira/secure/attachment/12569673/SOLR-4413.patch
cd ..
mkdir work
cd work
svn co http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_1/
cd lucene_solr_4_1
patch -p0 < ../../patches/SOLR-4413.patch
patch -p0 < ../../patches/SOLR-4471.patch
cd solr
ant dist
{noformat}
                
> slave index version is different form master (full index copy needed)
> ---------------------------------------------------------------------
>
>                 Key: SOLR-4471
>                 URL: https://issues.apache.org/jira/browse/SOLR-4471
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>    Affects Versions: 4.1
>            Reporter: Andre Charton
>            Assignee: Mark Miller
>              Labels: master, replication, slave, version
>             Fix For: 4.2, 5.0
>
>         Attachments: SOLR-4471.patch, SOLR-4471.patch, SOLR-4471.patch, 
> SOLR-4471_Tests.patch
>
>
> Scenario: master/slave replication, master delta index runs every 10 minutes, 
> slave poll interval is 10 sec.
> There was an issue SOLR-4413 - slave reads index from wrong directory, so 
> slave is full copy index from master every time, which is fixed after 
> applying this patch from 4413 (see script below).
> Now on replication the slave downloads only updated files, but slave is 
> create a new segement file and also a new version of index (generation is 
> identical with master). On next polling the slave is download the full index 
> again, because the new version slave is force a full copy.
> Problem is the new version of index on the slave after first replication.
> {noformat:apply patch SOLR-4413 script, please copy patch into patches 
> directory before useage.}
> mkdir work
> cd work
> svn co http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_4_1/
> cd lucene_solr_4_1
> patch -p0 < ../../patches/SOLR-4413.patch
> cd solr
> ant dist
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to