lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Faizan Aziz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-1822) SEVERE: Unable to move index file from: tempfile to: indexfile
Date Tue, 31 Jul 2012 08:13:34 GMT

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

Faizan Aziz commented on SOLR-1822:
-----------------------------------

Complete logs:
Jul 31, 2012 6:59:49 AM org.apache.solr.handler.SnapPuller copyAFile
SEVERE: Unable to move index file from: /opt/solr/multicore/1011/data/index.20120731065949/_9x.tis
to: /mnt/multicore/1011/data/index.20120731050740/_9x.tisTrying to do a copy
Jul 31, 2012 6:59:49 AM org.apache.solr.handler.SnapPuller copyAFile
SEVERE: Unable to copy index file from: /opt/solr/multicore/1011/data/index.20120731065949/_9x.tis
to: /mnt/multicore/1011/data/index.20120731050740/_9x.tis
java.io.FileNotFoundException: /mnt/multicore/1011/data/index.20120731050740/_9x.tis (No such
file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:209)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
        at org.apache.solr.common.util.FileUtils.copyFile(FileUtils.java:48)
        at org.apache.solr.handler.SnapPuller.copyAFile(SnapPuller.java:585)
        at org.apache.solr.handler.SnapPuller.copyIndexFiles(SnapPuller.java:621)
        at org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:317)
        at org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:268)
        at org.apache.solr.handler.ReplicationHandler$1.run(ReplicationHandler.java:149)
                
> SEVERE: Unable to move index file from: tempfile to: indexfile
> --------------------------------------------------------------
>
>                 Key: SOLR-1822
>                 URL: https://issues.apache.org/jira/browse/SOLR-1822
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>    Affects Versions: 1.4
>         Environment: Linux, JDK6,SOLR 1.4
>            Reporter: wyhw whon
>            Assignee: Mark Miller
>            Priority: Critical
>             Fix For: 3.1, 4.0-ALPHA
>
>         Attachments: SnapPuller.patch
>
>
> SOLR index directory remvoed,but do not know what the reasons for this.
> I add some codes on SnapPuller.java 577 line can reslove this bug.
> line 576                           
> File indexFileInIndex = new File(indexDir, fname);
> +
> if (!indexDir.exists()) indexDir.mkdir();
> boolean success = indexFileInTmpDir.renameTo(indexFileInIndex);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message