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

Robert Muir commented on LUCENE-3380:
-------------------------------------

the compound file directory can be thought of easily:
Imagine FileSwitchDirectory (F) which contains two directories (A and B)
and in the configuration, "cfs" files go to A, everything else to B.

so currently it calls F.createCompoundOutput("xxxx.cfs") which delegates to 
A.createCompoundOutput("xxxx.cfs") ->> CompoundFileWriter(A, "xxxx.cfs"), which 
then, new since LUCENE-3218, will create a.createOutput("xxxx.cfe")

The problem is that this cfe file is created under the wrong directory, and you 
will get FNFE.

We can use the solution I provided in  LUCENE-3374, but seriously maybe we 
should rethink LUCENE-3218 before releasing, because this could break similar 
delegators and basically they will experience what is like index corruption.

> enable FileSwitchDirectory randomly in tests and fix 
> compound-file/NoSuchDirectoryException bugs
> ------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3380
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3380
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Robert Muir
>             Fix For: 3.4, 4.0
>
>
> Looks like FileSwitchDirectory has the same bugs in it as LUCENE-3374.
> We should randomly enable this guy in tests and flush them all out the same 
> way.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to