Skip to content

Commit

Permalink
Applied spotlesscheck on tests
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Chandani <chngau@amazon.com>
  • Loading branch information
Gaurav614 committed Aug 30, 2023
1 parent ea6e081 commit 4def974
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ protected AsyncShardFetch.FetchResult<NodeGatewayStartedShards> fetchData(ShardR
)
);

return new AsyncShardFetch.FetchResult<>(foundShards, new HashMap<>(){{
put(shardId, ignoreNodes);
}});
return new AsyncShardFetch.FetchResult<>(foundShards, new HashMap<>() {
{
put(shardId, ignoreNodes);
}
});
}
};

Expand All @@ -113,9 +115,11 @@ private ReplicationCheckpoint getReplicationCheckpoint(ShardId shardId, String n
protected AsyncShardFetch.FetchResult<NodeStoreFilesMetadata> fetchData(ShardRouting shard, RoutingAllocation allocation) {
// for now, just pretend no node has data
final ShardId shardId = shard.shardId();
return new AsyncShardFetch.FetchResult<>(Collections.emptyMap(), new HashMap<>(){{
put(shardId, allocation.getIgnoreNodes(shardId));
}});
return new AsyncShardFetch.FetchResult<>(Collections.emptyMap(), new HashMap<>() {
{
put(shardId, allocation.getIgnoreNodes(shardId));
}
});
}

@Override
Expand Down

0 comments on commit 4def974

Please sign in to comment.