MultiReader should make a private copy of the subReaders array
--------------------------------------------------------------

                 Key: LUCENE-1323
                 URL: https://issues.apache.org/jira/browse/LUCENE-1323
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
    Affects Versions: 2.3.1, 2.3, 2.2, 2.1, 2.0.0, 1.9, 2.3.2, 2.4, 2.9, 3.0
            Reporter: Michael McCandless
            Assignee: Michael McCandless
            Priority: Trivial
             Fix For: 2.4


Spinoff from here:

    
http://mail-archives.apache.org/mod_mbox/lucene-java-user/200806.mbox/[EMAIL 
PROTECTED]

Because MultiReader just holds a reference to the array that was passed in, 
it's possible to hit scary exceptions (that look like index corruption) if that 
array is later altered eg by reopening some of the readers.

The fix is trivial: just make a private copy.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to