-
Notifications
You must be signed in to change notification settings - Fork 772
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
Simplify task handling in MetricCollector to avoid racy edge case #4121
Conversation
|
||
_waiters.Clear(); | ||
// wake up anybody still waiting and inform them of the bad news: their horse is dead... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please add a comment in all places we complete the waiter.TaskSource telling need to be called outside the lock.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@tarekgh I added the comments about usage of the task needing to be outside of the critical section. Unfortunately, I needed to leave the Thread.Sleep in the code since the test case is still failing. There is still something asynchronous happening which we don't understand. Can I impose on you again to figure out what's happening please? |
I'll try with the latest changes hopefully I can reproduce it. Looks it is failing on .NET 8.0 only now. |
null
Microsoft Reviewers: Open in CodeFlow