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

Mark Miller commented on SOLR-7374:
-----------------------------------

Just found the follow fail. Does not seem to be repeatable by seed, must be 
timing or something.

   [junit4] ERROR   0.72s J4  | TestReplicationHandlerBackup.doTestBackup <<<
   [junit4]    > Throwable #1: java.util.NoSuchElementException
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([2234E0A12F864773:63BFC0C40838B43C]:0)
   [junit4]    >        at 
sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator.next(UnixDirectoryStream.java:215)
   [junit4]    >        at 
sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator.next(UnixDirectoryStream.java:132)
   [junit4]    >        at 
org.apache.solr.handler.TestReplicationHandlerBackup.doTestBackup(TestReplicationHandlerBackup.java:174)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
   [junit4]   2> 563888 INFO  
(SUITE-TestReplicationHandlerBackup-seed#[2234E0A12F864773]-worker) [    ] 
o.a.s.SolrTestCaseJ4 ###deleteCore

   NOTE: reproduce with: ant test  -Dtestcase=TestReplicationHandlerBackup 
-Dtests.method=doTestBackup -Dtests.seed=2234E0A12F864773 -Dtests.slow=true 
-Dtests.locale=sk -Dtests.timezone=Asia/Calcutta -Dtests.asserts=true 
-Dtests.file.encoding=US-ASCII

> Backup/Restore should provide a param for specifying the directory 
> implementation it should use
> -----------------------------------------------------------------------------------------------
>
>                 Key: SOLR-7374
>                 URL: https://issues.apache.org/jira/browse/SOLR-7374
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Varun Thacker
>            Assignee: Mark Miller
>             Fix For: 5.2, 6.0
>
>         Attachments: SOLR-7374.patch, SOLR-7374.patch, SOLR-7374.patch, 
> SOLR-7374.patch
>
>
> Currently when we create a backup we use SimpleFSDirectory to write the 
> backup indexes. Similarly during a restore we open the index using 
> FSDirectory.open . 
> We should provide a param called {{directoryImpl}} or {{type}} which will be 
> used to specify the Directory implementation to backup the index. 
> Likewise during a restore you would need to specify the directory impl which 
> was used during backup so that the index can be opened correctly.
> This param will address the problem that currently if a user is running Solr 
> on HDFS there is no way to use the backup/restore functionality as the 
> directory is hardcoded.
> With this one could be running Solr on a local FS but backup the index on 
> HDFS etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to