This is due to this code DirectoryReader.  The AlternateDirectoryTest
class is waaaay too minimal in it's testing as well...  We probably
need to allow doReopen to be subclassed.

private synchronized DirectoryReader doReopen(SegmentInfos infos,
boolean doClone, boolean openReadOnly) throws CorruptIndexException,
IOException {
    DirectoryReader reader;
    if (openReadOnly) {
      reader = new ReadOnlyDirectoryReader(directory, infos,
subReaders, starts, normsCache, doClone, termInfosIndexDivisor,
readerFinishedListeners);
    } else {
      reader = new DirectoryReader(directory, infos, subReaders,
starts, normsCache, false, doClone, termInfosIndexDivisor,
readerFinishedListeners);
    }
    return reader;
  }

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

Reply via email to