[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-16 Thread Koji Sekiguchi (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13660197#comment-13660197
 ] 

Koji Sekiguchi commented on SOLR-4751:
--

Looks good! I'll commit shortly.

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Attachments: SOLR-4751.patch, SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-16 Thread Minoru Osuka (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13660264#comment-13660264
 ] 

Minoru Osuka commented on SOLR-4751:


Sekiguchi-san,

Thank you so much for your help!

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Fix For: 5.0, 4.4, 4.3.1

 Attachments: SOLR-4751.patch, SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-13 Thread Minoru Osuka (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13655849#comment-13655849
 ] 

Minoru Osuka commented on SOLR-4751:


Sorry for the inconvenience.

I'll modify test code.


 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Commit Tag Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654405#comment-13654405
 ] 

Commit Tag Bot commented on SOLR-4751:
--

[trunk commit] koji
http://svn.apache.org/viewvc?view=revisionrevision=1480988

SOLR-4751: fix replication problem of files in sub directory of conf

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Commit Tag Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654455#comment-13654455
 ] 

Commit Tag Bot commented on SOLR-4751:
--

[branch_4x commit] koji
http://svn.apache.org/viewvc?view=revisionrevision=1481004

SOLR-4751: fix replication problem of files in sub directory of conf

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Commit Tag Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654460#comment-13654460
 ] 

Commit Tag Bot commented on SOLR-4751:
--

[lucene_solr_4_3 commit] koji
http://svn.apache.org/viewvc?view=revisionrevision=1481008

SOLR-4751: fix replication problem of files in sub directory of conf

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Koji Sekiguchi (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654461#comment-13654461
 ] 

Koji Sekiguchi commented on SOLR-4751:
--

I committed the patch on trunk, branch_4x and 4.3.

Osuka-san, can you check one of them and see that your fix can solve the 
problem?

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Commit Tag Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654515#comment-13654515
 ] 

Commit Tag Bot commented on SOLR-4751:
--

[trunk commit] markrmiller
http://svn.apache.org/viewvc?view=revisionrevision=1481030

SOLR-4751: revert for now

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Fix For: 5.0, 4.4

 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Commit Tag Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654516#comment-13654516
 ] 

Commit Tag Bot commented on SOLR-4751:
--

[branch_4x commit] markrmiller
http://svn.apache.org/viewvc?view=revisionrevision=1481031

SOLR-4751: revert for now

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Fix For: 5.0, 4.4

 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Mark Miller (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654517#comment-13654517
 ] 

Mark Miller commented on SOLR-4751:
---

Seems a test fail is exposing an issue with this. I've reverted this for the 
moment.

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Fix For: 5.0, 4.4

 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Koji Sekiguchi (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654556#comment-13654556
 ] 

Koji Sekiguchi commented on SOLR-4751:
--

Sorry for the inconvenience.

I'll contact the reporter and see if we can fix the tests.

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-10 Thread Commit Tag Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13654597#comment-13654597
 ] 

Commit Tag Bot commented on SOLR-4751:
--

[lucene_solr_4_3 commit] koji
http://svn.apache.org/viewvc?view=revisionrevision=1481094

revert SOLR-4751 change

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Assignee: Koji Sekiguchi
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-07 Thread Koji Sekiguchi (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13651578#comment-13651578
 ] 

Koji Sekiguchi commented on SOLR-4751:
--

bq. Need to find files recursively.

The other day, I talked Osuka-san and I got the problem. It've come into being 
there since 3.6 as subdirectory (lang/) was created under conf directory.

Although it'd better to have test cases for replication, but as I don't have 
time and the patch looks simple, I'd like to commit in a few days if no one 
objects.

Meanwhile, updates of the patch are welcome. :)

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-01 Thread Koji Sekiguchi (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13646470#comment-13646470
 ] 

Koji Sekiguchi commented on SOLR-4751:
--

Hi Osuka-san, would you elaborate the problem a little more, please?

 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles,
 {code:xml}
 lst name=master
   str name=replicateAftercommit/str
   str name=replicateAfterstartup/str
   str name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
 /lst
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.  

--
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



[jira] [Commented] (SOLR-4751) The replication problem of the file in a subdirectory.

2013-05-01 Thread Minoru Osuka (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13646658#comment-13646658
 ] 

Minoru Osuka commented on SOLR-4751:


Hi Sekiguchi-san,



Please see following code,
core/src/java/org/apache/solr/handler/SnapPuller.java
{code:java}
  private void copyTmpConfFiles2Conf(File tmpconfDir) {
File confDir = new File(solrCore.getResourceLoader().getConfigDir());
for (File file : tmpconfDir.listFiles()) {
  File oldFile = new File(confDir, file.getName());
  if (oldFile.exists()) {
File backupFile = new File(confDir, oldFile.getName() + . + 
getDateAsStr(new Date(oldFile.lastModified(;
boolean status = oldFile.renameTo(backupFile);
if (!status) {
  throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
  Unable to rename:  + oldFile +  to:  + backupFile);
}
  }
  boolean status = file.renameTo(oldFile);
  if (status) {
  } else {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
Unable to rename:  + file +  to:  + oldFile);
  }
}
  }
{code}

This code does not assume subdirectory exists in conf directory.
Only the files specified by confFiles exists in temporary directory. All files 
are not gathered in lang directory in temporary directory.
This code will rename incomplete lang directory to conf directory.
Need to find files recursively.


 The replication problem of the file in a subdirectory.
 --

 Key: SOLR-4751
 URL: https://issues.apache.org/jira/browse/SOLR-4751
 Project: Solr
  Issue Type: Bug
  Components: replication (java)
Affects Versions: 4.2.1
Reporter: Minoru Osuka
Priority: Minor
 Attachments: SOLR-4751.patch


 When set lang/stopwords_ja.txt to confFiles in replication settings,
 {code:xml}
   requestHandler name=/replication class=solr.ReplicationHandler 
lst name=master
  str name=replicateAftercommit/str
  str name=replicateAfterstartup/str
  str 
 name=confFilesschema.xml,stopwords.txt,lang/stopwords_ja.txt/str
/lst
   /requestHandler
 {code}
 Only stopwords_ja.txt exists in solr/collection1/conf/lang directory on slave 
 node.

--
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