We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6fd1da commit fb67083Copy full SHA for fb67083
core/src/main/java/org/elasticsearch/index/engine/InternalEngine.java
@@ -1917,6 +1917,11 @@ public void onFailure(Exception e) {
1917
1918
@Override
1919
protected void doRun() throws Exception {
1920
+ /*
1921
+ * We do this on another thread rather than the merge thread that we are called on so that we have complete confidence
1922
+ * that the call stack does not contain catch statements that would prevent the error that might be thrown here from
1923
+ * being caught and never reaching the uncaught exception handler.
1924
+ */
1925
maybeDie("fatal error while merging", exc);
1926
logger.error("failed to merge", exc);
1927
failEngine("merge failed", new MergePolicy.MergeException(exc, dir));
0 commit comments