CTS.TryReset() concurrency issue #60180
-
Probably, there is an issue associated with
This scenario was proposed in original PR as well. But sometimes in very rare situations I see the following exception:
We see here that the timer has been destroyed but not CTS instance itself. I did investigation and found the following suspicious behavior:
I can't provide the repro code because the issues is not reproducible constantly (which is normal for concurrency issues). However, the issue is observable for very small cancellation timeouts (1-10 milliseconds). Proposed fixes:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thanks. Can you open this as an issue instead? This is a bug. |
Beta Was this translation helpful? Give feedback.
Thanks. Can you open this as an issue instead? This is a bug.