-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Automatically adjust pre_filter_shard_size to 1 for readonly indices #43377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
34ed1de
f0d8d03
a19203a
e279332
53dc558
dfa971c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ public final class SearchRequest extends ActionRequest implements IndicesRequest | |
|
||
private static final ToXContent.Params FORMAT_PARAMS = new ToXContent.MapParams(Collections.singletonMap("pretty", "false")); | ||
|
||
public static final int DEFAULT_PRE_FILTER_SHARD_SIZE = 128; | ||
public static final int DEFAULT_PRE_FILTER_SHARD_SIZE = -1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: we serialize this value using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good point: I follow the bytes reasoning more than the resetting issue, cause generally we do not allow null values either when validating requests, hence you need to create a new request to go back to the default values. I am not a big fan of null values, so I have a slight preference for -1 but I can also change that |
||
public static final int DEFAULT_BATCHED_REDUCE_SIZE = 512; | ||
|
||
private static final long DEFAULT_ABSOLUTE_START_MILLIS = -1; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing "`" after
128
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch