Relates to #58680. Bugs like that should not only show up in logs but ideally also get caught in tests. We expect to never see exceptions in these two spots.
This commit is contained in:
parent
81e96954d0
commit
0e3d87ab54
|
@ -355,6 +355,7 @@ public class RepositoriesService extends AbstractLifecycleComponent implements C
|
|||
}
|
||||
repositories = Collections.unmodifiableMap(builder);
|
||||
} catch (Exception ex) {
|
||||
assert false : new AssertionError(ex);
|
||||
logger.warn("failure updating cluster state ", ex);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,6 +137,7 @@ public class SnapshotShardsService extends AbstractLifecycleComponent implements
|
|||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
assert false : new AssertionError(e);
|
||||
logger.warn("Failed to update snapshot state ", e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue