-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Prohibit _reindex, _delete_by_query and _update_by_query from issuing cross-project calls #137203
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 3 commits
5ddf638
ed101ee
ce97075
07643bf
313bed5
23c60f8
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 |
|---|---|---|
|
|
@@ -137,6 +137,13 @@ public AbstractBulkByScrollRequest(SearchRequest searchRequest, boolean setDefau | |
| */ | ||
| protected abstract Self self(); | ||
|
|
||
| /** | ||
| * Whether the request supports remote indices in the search request. | ||
| */ | ||
| public boolean supportsRemoteIndicesSearch() { | ||
|
Contributor
Author
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. This method can be used in the future to prohibit remote update-by-query/delete-by-query requests in CCS by adding the following code to
Contributor
Author
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. Can
Contributor
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 question. Given that none of these Request objects implement @piergm - What do you think?
Member
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. Correct, |
||
| return false; | ||
| } | ||
|
|
||
| @Override | ||
| public ActionRequestValidationException validate() { | ||
| ActionRequestValidationException e = searchRequest.validate(); | ||
|
|
||
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 (optional): since
isRemoteIndexNameis inRemoteClusterAwareshould we move this method to be there as well? If others want to use this in the future, they might search RemoteClusterAware first and not finding it re-implement it.