mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 06:55:32 +00:00
assert that tragic even exception is never null
This commit is contained in:
parent
f69502dd04
commit
2370ace922
@ -106,6 +106,7 @@ public class TranslogWriter extends TranslogReader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private synchronized final void closeWithTragicEvent(Throwable throwable) throws IOException {
|
private synchronized final void closeWithTragicEvent(Throwable throwable) throws IOException {
|
||||||
|
assert throwable != null : "throwable must not be null in a tragic event";
|
||||||
if (tragedy == null) {
|
if (tragedy == null) {
|
||||||
tragedy = throwable;
|
tragedy = throwable;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user