Ever since we added readerClosedListeners to evict FieldCache entries, LTC will no longer detect insanity as long as the test closes all readers leading to insanity ...
So this has weakened our testing of catching accidental insanity producing code.
To fix this I think we could tap into FieldCacheImpl.setInfoStream ... and ensure the test didn't print anything to it.
This was a spinoff from #6017, where that test (AllGroupHeadsCollectorTest) is always producing insanity, but then because of a bug the FC eviction wasn't working right, and LTC then detected the insanity.
Migrated from LUCENE-4954 by Michael McCandless (@mikemccand), updated May 09 2016
Ever since we added readerClosedListeners to evict FieldCache entries, LTC will no longer detect insanity as long as the test closes all readers leading to insanity ...
So this has weakened our testing of catching accidental insanity producing code.
To fix this I think we could tap into FieldCacheImpl.setInfoStream ... and ensure the test didn't print anything to it.
This was a spinoff from #6017, where that test (AllGroupHeadsCollectorTest) is always producing insanity, but then because of a bug the FC eviction wasn't working right, and LTC then detected the insanity.
Migrated from LUCENE-4954 by Michael McCandless (@mikemccand), updated May 09 2016