You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Benson Margulies <bi...@gmail.com> on 2014/04/08 14:45:45 UTC

FilterDirectoryReader and close

I added a test case to TestDirectoryReaderReopen that tests an
experiment of mine with a FilterDirectoryReader.

It fails in

org.apache.lucene.index.TestDirectoryReaderReopen#performDefaultTests

at

  index2_refreshed.close();
    assertReaderClosed(index2, true);

So it seems that the reader returned by my filter's doOpenIfChanged is
not properly coupled to the original. Is this something I need to
code, something missing from FilterDirectoryReader, or something that
isn't supposed to work?

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