You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cassandra Targett (JIRA)" <ji...@apache.org> on 2017/11/10 22:17:00 UTC

[jira] [Updated] (SOLR-4139) TestReplicationHandler fails if preventDoubleWrite is enabled in MockDirectoryWrapper

     [ https://issues.apache.org/jira/browse/SOLR-4139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cassandra Targett updated SOLR-4139:
------------------------------------
    Component/s: Tests

> TestReplicationHandler fails if preventDoubleWrite is enabled in MockDirectoryWrapper
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-4139
>                 URL: https://issues.apache.org/jira/browse/SOLR-4139
>             Project: Solr
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Shai Erera
>
> Currently, if preventDoubleWrite is enabled in MockDirectoryWrapper, TestReplicationHandler fails with this exception:
> {noformat}
> [junit4:junit4]   2>    Caused by: java.io.IOException: file
> "index.properties" was already written to
> [junit4:junit4]   2>            at
> org.apache.lucene.store.MockDirectoryWrapper.createOutput(MockDirectoryWrapper.java:411)
> [junit4:junit4]   2>            at
> org.apache.solr.handler.SnapPuller.modifyIndexProps(SnapPuller.java:872)
> [junit4:junit4]   2>            ... 11 more
> {noformat}
> I diabled that setting in MockDirectoryFactory, but I suggest that someone who understands the code better have a look at it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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