mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Sanity assertion that exception cause is not null
This commit adds a sanity assertion that the cause of a transport exception when sending a shard failure is not null.
This commit is contained in:
parent
7eefcbbeed
commit
cf3c0ed049
@ -111,6 +111,7 @@ public class ShardStateAction extends AbstractComponent {
|
||||
|
||||
@Override
|
||||
public void handleException(TransportException exp) {
|
||||
assert exp.getCause() != null : exp;
|
||||
if (isMasterChannelException(exp.getCause())) {
|
||||
waitForNewMasterAndRetry(observer, shardRoutingEntry, listener);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user