You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan Ernst (JIRA)" <ji...@apache.org> on 2014/05/11 00:04:06 UTC

[jira] [Commented] (SOLR-6055) TestMiniSolrCloudCluster has data dir in test's CWD

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

Ryan Ernst commented on SOLR-6055:
----------------------------------

I think the real problem is the transaction log uses the dataDir, which is supposedly controlled by the directory factory.  Either the transaction log needs its own dir, or we should always make sure dataDir is an absolute path in the local filesystem.

> TestMiniSolrCloudCluster has data dir in test's CWD
> ---------------------------------------------------
>
>                 Key: SOLR-6055
>                 URL: https://issues.apache.org/jira/browse/SOLR-6055
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Ryan Ernst
>
> While investigating one of the test failures created when tightening test permissions to restrict write access to CWD (see LUCENE-5650), I've found {{TestMiniSolrCloudCluster}} is attemping to write transaction logs to {{$CWD/data/tlog}}.
> I've traced this down to two things which are happening:
> # The test uses {{RAMDirectoryFactory}}, which always returns true for {{isAbsolute}}.  This causes the directory factory to *not* adjust the default relative to bring it under the instance dir.
> # The {{UpdateLog}} creates its tlog file with the relative data dir.
>  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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