Skip to content

Commit 777fe07

Browse files
committed
Default to true except in the case of concreteWriteIndices
Signed-off-by: Craig Perkins <[email protected]>
1 parent 7bbfd04 commit 777fe07

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

server/src/main/java/org/opensearch/cluster/metadata/IndexNameExpressionResolver.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,17 @@ public Index concreteWriteIndex(
491491
options.ignoreThrottled()
492492
);
493493

494-
Context context = new Context(state, combinedOptions, false, true, includeDataStreams, isSystemIndexAccessAllowed());
494+
Context context = new Context(
495+
state,
496+
combinedOptions,
497+
System.currentTimeMillis(),
498+
false,
499+
true,
500+
includeDataStreams,
501+
false,
502+
isSystemIndexAccessAllowed(),
503+
false
504+
);
495505
Index[] indices = concreteIndices(context, index);
496506
if (allowNoIndices && indices.length == 0) {
497507
return null;
@@ -821,7 +831,7 @@ public static class Context {
821831
includeDataStreams,
822832
false,
823833
isSystemIndexAccessAllowed,
824-
false
834+
true
825835
);
826836
}
827837

@@ -843,15 +853,15 @@ public static class Context {
843853
includeDataStreams,
844854
preserveDataStreams,
845855
isSystemIndexAccessAllowed,
846-
false
856+
true
847857
);
848858
}
849859

850860
Context(ClusterState state, IndicesOptions options, long startTime, boolean isSystemIndexAccessAllowed) {
851-
this(state, options, startTime, false, false, false, false, isSystemIndexAccessAllowed, false);
861+
this(state, options, startTime, false, false, false, false, isSystemIndexAccessAllowed, true);
852862
}
853863

854-
protected Context(
864+
Context(
855865
ClusterState state,
856866
IndicesOptions options,
857867
long startTime,

0 commit comments

Comments
 (0)