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

ChangeFeed: Fixes Timer Queue Flooding by using a CancellationTokenSource #3285

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

imanvt
Copy link
Contributor

@imanvt imanvt commented Jun 21, 2022

Pull Request Template

Description

Using Task.WhenAny to compare two task executions, where one is a timeout task (e.g. Task.Delay), causes the timer queue to become flooded because these tasks do not get cancelled. This PR fixes that issue by cancelling the unfinished Task.Delay tasks.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Closing issues

closes #3283

@ealsur ealsur merged commit 1da0803 into master Jun 22, 2022
@ealsur ealsur deleted the users/imanvt/3283-changefeed-timer-queue-flooding branch June 22, 2022 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ChangeFeed: Possible flooding of timer queue
2 participants