Skip to content

Commit 75e470c

Browse files
author
Harsh Garg
committed
Making _cat/allocation API use indexLevelStats
Signed-off-by: Harsh Garg <[email protected]>
1 parent 64e503d commit 75e470c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

release-notes/opensearch.release-notes-2.17.0.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
- Reset DiscoveryNodes in all transport node actions request ([#15131](https://github.com/opensearch-project/OpenSearch/pull/15131))
5353
- MultiTermQueries in keyword fields now default to `indexed` approach and gated behind cluster setting ([#15637](https://github.com/opensearch-project/OpenSearch/pull/15637))
5454
- Adding WithFieldName interface for QueryBuilders with fieldName ([#15705](https://github.com/opensearch-project/OpenSearch/pull/15705))
55+
- Making _cat/allocation API use indexLevelStats ([#15292](https://github.com/opensearch-project/OpenSearch/pull/15292))
5556

5657
### Dependencies
5758
- Bump `netty` from 4.1.111.Final to 4.1.112.Final ([#15081](https://github.com/opensearch-project/OpenSearch/pull/15081))

server/src/main/java/org/opensearch/rest/action/cat/RestAllocationAction.java

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ public void processResponse(final ClusterStateResponse state) {
101101
statsRequest.clear()
102102
.addMetric(NodesStatsRequest.Metric.FS.metricName())
103103
.indices(new CommonStatsFlags(CommonStatsFlags.Flag.Store));
104+
statsRequest.indices().setIncludeIndicesStatsByLevel(true);
104105

105106
client.admin().cluster().nodesStats(statsRequest, new RestResponseListener<NodesStatsResponse>(channel) {
106107
@Override

0 commit comments

Comments
 (0)