Skip to content

Commit af4cbd3

Browse files
committed
remove assert
1 parent 247a9d3 commit af4cbd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/shard/IndexShard.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4325,7 +4325,7 @@ public void resetEngine() {
43254325
}
43264326
onSettingsChanged();
43274327
} catch (Exception e) {
4328-
assert false : e;
4328+
// we want to fail the shard in the case prepareForEngineReset throws
43294329
failShard("unable to reset engine", e);
43304330
}
43314331
}

0 commit comments

Comments
 (0)