Skip to content

Commit

Permalink
rename getShardCancellationAction
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 committed Feb 5, 2024
1 parent 6411b2e commit b3c2095
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected boolean shouldSkipFetchForRecovery(ShardRouting shard) {
return false;
}

protected Runnable getShardCancellationAction(
protected Runnable cancelExistingRecoveryForBetterMatch(
ShardRouting shard,
RoutingAllocation allocation,
Map<DiscoveryNode, StoreFilesMetadata> nodeShardStores
Expand Down Expand Up @@ -174,7 +174,7 @@ public void processExistingRecoveries(RoutingAllocation allocation) {
AsyncShardFetch.FetchResult<NodeStoreFilesMetadata> shardStores = fetchData(shard, allocation);
Map<DiscoveryNode, StoreFilesMetadata> nodeShardStores = convertToNodeStoreFilesMetadataMap(shardStores);

Runnable cancellationAction = getShardCancellationAction(shard, allocation, nodeShardStores);
Runnable cancellationAction = cancelExistingRecoveryForBetterMatch(shard, allocation, nodeShardStores);
if (cancellationAction != null) {
shardCancellationActions.add(cancellationAction);
}
Expand Down

0 comments on commit b3c2095

Please sign in to comment.