Skip to content

Commit 6729220

Browse files
Making _cat/allocation API use indexLevelStats (#15790)
Signed-off-by: Harsh Garg <[email protected]>
1 parent 4b8f9c8 commit 6729220

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

Lines changed: 1 addition & 0 deletions
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
- Static RemotePublication setting added, removed experimental feature flag ([#15478](https://github.com/opensearch-project/OpenSearch/pull/15478))
5657
- [Remote Publication] Upload incremental cluster state on master re-election ([#15145](https://github.com/opensearch-project/OpenSearch/pull/15145))
5758

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

Lines changed: 1 addition & 0 deletions
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)