You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "wyhw whon (JIRA)" <ji...@apache.org> on 2010/03/15 04:39:27 UTC
[jira] Created: (SOLR-1822) SEVERE: Unable to move index file from:
tempfile to: indexfile
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
Priority: Critical
Fix For: 1.5
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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-1822) SEVERE: Unable to move index file from:
tempfile to: indexfile
Posted by "wyhw whon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
wyhw whon updated SOLR-1822:
----------------------------
Attachment: SnapPuller.patch
Add SnapPuller.patch
> 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
> Priority: Critical
> Fix For: 1.5
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-1822) SEVERE: Unable to move index file from:
tempfile to: indexfile
Posted by "wyhw whon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
wyhw whon updated SOLR-1822:
----------------------------
Description:
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);
was:
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);
> 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
> Priority: Critical
> Fix For: 1.5
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-1822) SEVERE: Unable to move index file from:
tempfile to: indexfile
Posted by "wyhw whon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
wyhw whon updated SOLR-1822:
----------------------------
Description:
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);
was:
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);
> 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
> Priority: Critical
> Fix For: 1.5
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SOLR-1822) SEVERE: Unable to move index file
from: tempfile to: indexfile
Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-1822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846099#action_12846099 ]
Otis Gospodnetic commented on SOLR-1822:
----------------------------------------
When Solr starts, doesn't it create the index directory? If so, this patch is not needed, unless we want to make sure replication succeeds even if someone/something removes the whole index directory on a slave after the slave had already started.
Is this reeeeally needed?
> 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
> Priority: Critical
> Fix For: 1.5
>
> 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.
-
You can reply to this email to add a comment to the issue online.