Index: lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java =================================================================== --- lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java (revision 1550820) +++ lucene/test-framework/src/java/org/apache/lucene/store/MockDirectoryWrapper.java (working copy) @@ -215,6 +215,9 @@ // clone the file map, as these guys want to remove themselves on close. Map m = new IdentityHashMap(openFileHandles); for (Closeable f : m.keySet()) { + if (f instanceof IndexInput) { + continue; // don't close the inputs someone might still read from it which is ok + } try { f.close(); } catch (Exception ignored) {}