mirror of https://github.com/apache/lucene.git
throw IOExc, not RuntimeException wrapping IOExc, if we hit exc while closing IndexReader
This commit is contained in:
parent
da5cc3cad5
commit
0607f007bf
|
@ -138,7 +138,7 @@ public abstract class IndexReader implements Closeable {
|
|||
parentReaders.add(reader);
|
||||
}
|
||||
|
||||
private void notifyReaderClosedListeners(Throwable th) {
|
||||
private void notifyReaderClosedListeners(Throwable th) throws IOException {
|
||||
synchronized(readerClosedListeners) {
|
||||
for(ReaderClosedListener listener : readerClosedListeners) {
|
||||
try {
|
||||
|
@ -151,7 +151,7 @@ public abstract class IndexReader implements Closeable {
|
|||
}
|
||||
}
|
||||
}
|
||||
IOUtils.reThrowUnchecked(th);
|
||||
IOUtils.reThrow(th);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue