Skip to content

Commit

Permalink
revert the routingTable.indicesRouting.keySet change (#469)
Browse files Browse the repository at this point in the history
Co-authored-by: Chenyang Ji <cyji@amazon.com>
  • Loading branch information
ansjcy and ansjcy committed May 31, 2023
1 parent 5b91c09 commit 7ea0ba1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void collectMetrics(long startTime) {
value.append(PerformanceAnalyzerMetrics.getJsonCurrentMilliSeconds())
.append(PerformanceAnalyzerMetrics.sMetricNewLineDelimitor);
RoutingTable routingTable = clusterState.routingTable();
String[] indices = routingTable.indicesRouting().keySet().toArray(new String[0]);
String[] indices = routingTable.indicesRouting().keys().toArray(String.class);
for (String index : indices) {
List<ShardRouting> allShardsIndex = routingTable.allShards(index);
value.append(
Expand Down

0 comments on commit 7ea0ba1

Please sign in to comment.