Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 committed Mar 18, 2024
1 parent 5639a69 commit b252e71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ private Map<DiscoveryNode, StoreFilesMetadata> convertToNodeStoreFilesMetadataMa
ShardRouting unassignedShard,
FetchResult<NodeStoreFilesMetadataBatch> data
) {

if (!data.hasData()) {
return new HashMap<>();
return null;
}

Map<DiscoveryNode, StoreFilesMetadata> map = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,11 @@ protected AsyncShardFetch.FetchResult<NodeStoreFilesMetadataBatch> fetchData(
);
}
}
return new AsyncShardFetch.FetchResult<>(tData, Collections.<ShardId, Set<String>>emptyMap());
return new AsyncShardFetch.FetchResult<>(tData, new HashMap<>() {
{
put(shardId, Collections.emptySet());
}
});
}

@Override
Expand Down

0 comments on commit b252e71

Please sign in to comment.