-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This commit detects a specific case when a child action (e.g. a shard level action, or a phased action) acts on the same indices (or a subset of the indices) or that parent request, and we can retain the original authorization result. The optimization is only effective for the invocation of the child action on the same node as the parent - if the transport action needs to be executed on a remote node then that authorization will not be optimized and will perform the full check as existed before this change. This change is primarily benefitial for actions where a single parent action on a coordinating node triggers the execution of multiple children (e.g. a child action per shard) as it allows the coordinating node to trigger those action and allow the load to be passed to the remote nodes as quickly as possible rather than having authorization on the coordinating node become a bottleneck. Co-authored-by: Tim Vernum <tim.vernum@elastic.co>
- Loading branch information
Showing
11 changed files
with
511 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.