Skip to content

Commit 5d9ab0c

Browse files
committed
Fix rollover stats acquisition
1 parent 62755bb commit 5d9ab0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ protected void masterOperation(
256256
IndicesOptions.WildcardOptions.builder().matchClosed(true).allowEmptyExpressions(false).build(),
257257
IndicesOptions.GatekeeperOptions.DEFAULT
258258
);
259-
IndicesStatsRequest statsRequest = new IndicesStatsRequest().indices(resolvedRolloverTarget.resource())
259+
// Make sure to recombine any selectors on the stats request
260+
IndicesStatsRequest statsRequest = new IndicesStatsRequest().indices(resolvedRolloverTarget.combined())
260261
.clear()
261262
.indicesOptions(statsIndicesOptions)
262263
.docs(true)

0 commit comments

Comments
 (0)