Skip to content
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

Remove the task from the task list at the end of task destruction #11117

Closed
wants to merge 1 commit into from

Conversation

xiaoxmeng
Copy link
Contributor

Summary:
Previously the running task counter is decremented as part of member destruction.
Recent changes to track the running task in a global list for stats tracking but
we remove it from the list at the entry of the task destructor so there is race
condition between the task destruction thread running at the background and the
test shutdown thread. The fix is to move the task list remove at the end of task
destructor. Also note that we manually destroy class members in task destructor
so it is fine to remove the task list in destructor.

Reviewed By: spershin

Differential Revision: D63546925

Summary:
Previously the running task counter is decremented as part of member destruction.
Recent changes to track the running task in a global list for stats tracking but
we remove it from the list at the entry of the task destructor so there is race
condition between the task destruction thread running at the background and the
test shutdown thread. The fix is to move the task list remove at the end of task
destructor. Also note that we manually destroy class members in task destructor
so it is fine to remove the task list in destructor.

Reviewed By: spershin

Differential Revision: D63546925
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 27, 2024
Copy link

netlify bot commented Sep 27, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit b0e83b5
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66f6f0b974867600082dcfc9

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D63546925

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d5fb0d8.

@xiaoxmeng xiaoxmeng deleted the export-D63546925 branch September 27, 2024 23:24
Copy link

Conbench analyzed the 1 benchmark run on commit d5fb0d8b.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

athmaja-n pushed a commit to athmaja-n/velox that referenced this pull request Jan 10, 2025
…cebookincubator#11117)

Summary:
Pull Request resolved: facebookincubator#11117

Previously the running task counter is decremented as part of member destruction.
Recent changes to track the running task in a global list for stats tracking but
we remove it from the list at the entry of the task destructor so there is race
condition between the task destruction thread running at the background and the
test shutdown thread. The fix is to move the task list remove at the end of task
destructor. Also note that we manually destroy class members in task destructor
so it is fine to remove the task list in destructor.

Reviewed By: spershin

Differential Revision: D63546925

fbshipit-source-id: 1fe0c8f087a06138035b4d4ef16848faf87d652d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants