Skip to content

Use ConcurrentSet in testTrackingChannelTask #56775

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

Merged
merged 1 commit into from
May 14, 2020

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented May 14, 2020

We need to use a ConcurrentSet to track the canceled tasks as cancelTaskAndDescendants can be called concurrently.

Closes #56746

@dnhatn dnhatn added >test-failure Triaged test failures from CI :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. v8.0.0 v7.9.0 labels May 14, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Task Management)

@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label May 14, 2020
@dnhatn dnhatn added >test Issues or PRs that are addressing/adding tests and removed >test-failure Triaged test failures from CI labels May 14, 2020
Copy link
Member

@original-brownbear original-brownbear left a comment

Choose a reason for hiding this comment

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

LGTM!

@dnhatn
Copy link
Member Author

dnhatn commented May 14, 2020

Thanks Armin!

@dnhatn dnhatn merged commit 2e13702 into elastic:master May 14, 2020
@dnhatn dnhatn deleted the fix-tracking-task branch May 14, 2020 16:12
dnhatn added a commit that referenced this pull request May 14, 2020
dnhatn added a commit that referenced this pull request May 14, 2020
We need to use a ConcurrentSet to track the canceled tasks
as cancelTaskAndDescendants can be called concurrently.

Closes #56746
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v7.9.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] TaskManagerTests#testTrackingChannelTask
4 participants