Skip to content

Drop bogus markAsSystemContext call in CCR #84409

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

Conversation

DaveCTurner
Copy link
Contributor

Today the ShardFollowTasksExecutor enters system context before
renewing a retention lease, but then makes the remote call using a
client which replaces the thread context with a non-system one again.

This commit removes this no-op code to clarify the security model in
this area.

Relates #61308, #84006, #84156

Today the `ShardFollowTasksExecutor` enters system context before
renewing a retention lease, but then makes the remote call using a
client which replaces the thread context with a non-system one again.

This commit removes this no-op code to clarify the security model in
this area.

Relates elastic#61308, elastic#84006, elastic#84156
@DaveCTurner DaveCTurner added >non-issue :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features v8.2.0 labels Feb 28, 2022
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Feb 28, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@DaveCTurner DaveCTurner marked this pull request as draft February 28, 2022 08:58
@DaveCTurner
Copy link
Contributor Author

Marking this as stalled until #84156 is resolved and the tests are enabled again.

@ywangd
Copy link
Member

ywangd commented Mar 1, 2022

The test is now fixed and unmuted #84467

@DaveCTurner DaveCTurner marked this pull request as ready for review March 1, 2022 09:27
Copy link
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@DaveCTurner DaveCTurner merged commit 9d57899 into elastic:master Mar 3, 2022
@DaveCTurner DaveCTurner deleted the 2022-02-28-drop-bogus-markAsSystemContext branch March 3, 2022 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Indexing/CCR Issues around the Cross Cluster State Replication features >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants