File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
server/src/main/java/org/elasticsearch/indices/cluster Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1004,12 +1004,14 @@ private static DiscoveryNode findSourceNodeForReshardSplitRecovery(
10041004 ShardRouting sourceShardRouting = routingTable .shardRoutingTable (sourceShardId ).primaryShard ();
10051005
10061006 if (sourceShardRouting .active () == false ) {
1007+ assert false : sourceShardRouting ;
10071008 logger .trace ("can't find reshard split source node because source shard {} is not active." , sourceShardRouting );
10081009 return null ;
10091010 }
10101011
10111012 DiscoveryNode sourceNode = nodes .get (sourceShardRouting .currentNodeId ());
10121013 if (sourceNode == null ) {
1014+ assert false : "Source node for reshard does not exist: " + sourceShardRouting .currentNodeId ();
10131015 logger .trace (
10141016 "can't find reshard split source node because source shard {} is assigned to an unknown node." ,
10151017 sourceShardRouting
You can’t perform that action at this time.
0 commit comments