lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1323) MultiReader should make a private copy of the subReaders array
Date Tue, 01 Jul 2008 12:31:45 GMT
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/%3C88F3F6A4-FBFB-43DF-890D-DB5F0D9A2461@gmail.com%3E

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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message