Skip to content

Commit

Permalink
TestShardRouting returns RecoverySource as null for SPLITTING state
Browse files Browse the repository at this point in the history
Signed-off-by: Paras Jain <[email protected]>
  • Loading branch information
parasjain1 authored Feb 9, 2025
1 parent 2535b6e commit ad7bc10
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,8 @@ private static RecoverySource buildRecoveryTarget(boolean primary, ShardRoutingS
}
case STARTED:
case RELOCATING:
return null;
case SPLITTING:
return RecoverySource.InPlaceShardSplitRecoverySource.INSTANCE;
return null;
default:
throw new IllegalStateException("illegal state");
}
Expand Down

0 comments on commit ad7bc10

Please sign in to comment.