|
32 | 32 | * - {@link PeerRecoverySource} recovery from a primary on another node |
33 | 33 | * - {@link SnapshotRecoverySource} recovery from a snapshot |
34 | 34 | * - {@link LocalShardsRecoverySource} recovery from other shards of another index on the same node |
35 | | - * - {@link SplitTargetRecoverySource} recovery of a shard that is created as a result of a resharding split |
| 35 | + * - {@link ReshardSplitTargetRecoverySource} recovery of a shard that is created as a result of a resharding split |
36 | 36 | */ |
37 | 37 | public abstract class RecoverySource implements Writeable, ToXContentObject { |
38 | 38 |
|
@@ -61,7 +61,7 @@ public static RecoverySource readFrom(StreamInput in) throws IOException { |
61 | 61 | case PEER -> PeerRecoverySource.INSTANCE; |
62 | 62 | case SNAPSHOT -> new SnapshotRecoverySource(in); |
63 | 63 | case LOCAL_SHARDS -> LocalShardsRecoverySource.INSTANCE; |
64 | | - case RESHARD_SPLIT_TARGET -> new SplitTargetRecoverySource(in); |
| 64 | + case RESHARD_SPLIT_TARGET -> new ReshardSplitTargetRecoverySource(in); |
65 | 65 | }; |
66 | 66 | } |
67 | 67 |
|
@@ -330,14 +330,14 @@ public boolean expectEmptyRetentionLeases() { |
330 | 330 | * Recovery of a shard that is created as a result of a resharding split. |
331 | 331 | * Not to be confused with _split API. |
332 | 332 | */ |
333 | | - public static class SplitTargetRecoverySource extends RecoverySource { |
| 333 | + public static class ReshardSplitTargetRecoverySource extends RecoverySource { |
334 | 334 | private final ShardId sourceShardId; |
335 | 335 |
|
336 | | - public SplitTargetRecoverySource(ShardId sourceShardId) { |
| 336 | + public ReshardSplitTargetRecoverySource(ShardId sourceShardId) { |
337 | 337 | this.sourceShardId = sourceShardId; |
338 | 338 | } |
339 | 339 |
|
340 | | - SplitTargetRecoverySource(StreamInput in) throws IOException { |
| 340 | + ReshardSplitTargetRecoverySource(StreamInput in) throws IOException { |
341 | 341 | sourceShardId = new ShardId(in); |
342 | 342 | } |
343 | 343 |
|
|
0 commit comments