Replication uses File#renameTo() method to move files from temp dir to
the index dir.If this call fails replication fails. We must do a file
copy if this fails.

report  a bug .
--Noble

On Wed, Dec 24, 2008 at 3:47 PM, Jaco <jdevr...@gmail.com> wrote:
> Hello,
>
> While testing out the new replication features, I'm running into some
> strange problem. On the slave, I keep getting an error like this after all
> files have been copied from the master to the temporary index.xxxxxxxxx
> directory:
>
> SEVERE: Unable to move index file from:
> D:\Data\solr\Slave\data\index.20081224110855\_21e.tvx to:
> D:\Data\Solr\Slave\data\index\_21e.tvx
>
> The replication then stops, index remains in original state, so the updates
> are not available at the slave.
>
> This is my replication config at the master:
>
>    <requestHandler name="/replication" class="solr.ReplicationHandler" >
>        <lst name="master">
>            <!--Replicate on 'optimize' it can also be  'commit' -->
>            <str name="replicateAfter">commit</str>
>            <str name="confFiles">schema.xml</str>
>        </lst>
>    </requestHandler>
>
> This is the replication config at the slave:
>
>    <requestHandler name="/replication" class="solr.ReplicationHandler" >
>        <lst name="slave">
>            <str name="masterUrl">
> http://hostnamemaster:8080/solr/Master/replication</str>
>            <str name="pollInterval">00:10:00</str>
>            <str name="zip">true</str>
>        </lst>
>    </requestHandler>
>
> I'm running a Solr nightly build of 21.12.2008 in Tomcat 6 on Windows 2003.
> Initially I thought there was some problem with disk space, but this is not
> the case. Replication did run fine for intial version of index, but after
> that at some point it didn't work anymore. Any ideas what could be wrong
> here?
>
> Thanks very much in advance, bye,
>
> Jaco.
>



-- 
--Noble Paul

Reply via email to