Skip to content

Commit

Permalink
Removing unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Shourya Dutta Biswas <114977491+shourya035@users.noreply.github.com>
  • Loading branch information
shourya035 committed Apr 30, 2024
1 parent 455bc59 commit 1179072
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
import java.util.Set;
import java.util.stream.Collectors;

import static org.opensearch.index.remote.RemoteStoreUtils.getRemoteStoreRepoName;

/**
* Observer that tracks changes made to RoutingNodes in order to update the primary terms and in-sync allocation ids in
* {@link IndexMetadata} once the allocation round has completed.
Expand Down Expand Up @@ -160,10 +158,6 @@ public Metadata applyChanges(Metadata oldMetadata, RoutingTable newRoutingTable,
Map<Index, List<Map.Entry<ShardId, Updates>>> changesGroupedByIndex = shardChanges.entrySet()
.stream()
.collect(Collectors.groupingBy(e -> e.getKey().getIndex()));
Map<String, String> remoteRepoNames = new HashMap<>();
if (ongoingRemoteStoreMigration) {
remoteRepoNames = getRemoteStoreRepoName(discoveryNodes);
}
Metadata.Builder metadataBuilder = null;
for (Map.Entry<Index, List<Map.Entry<ShardId, Updates>>> indexChanges : changesGroupedByIndex.entrySet()) {
Index index = indexChanges.getKey();
Expand Down

0 comments on commit 1179072

Please sign in to comment.