mirror of https://github.com/apache/lucene.git
[TEST] Set stop flag in the case of an exception
This commit is contained in:
parent
d32ce90924
commit
ac027145fb
|
@ -582,12 +582,13 @@ public class TestSearcherManager extends ThreadedIndexingAndSearchingTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
docs.close();
|
docs.close();
|
||||||
stop.set(true);
|
|
||||||
if (VERBOSE) {
|
if (VERBOSE) {
|
||||||
System.out.println("TEST: index count=" + writerRef.get().maxDoc());
|
System.out.println("TEST: index count=" + writerRef.get().maxDoc());
|
||||||
}
|
}
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
throw new RuntimeException(ioe);
|
throw new RuntimeException(ioe);
|
||||||
|
} finally {
|
||||||
|
stop.set(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue