-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
fix InstanceDataCollectionCollection_CopyTo by retrying on 0 values #70119
Conversation
Previously, when pcc.ReadCategory() returned 0 values, we did not retry, which broke the test that asserted its length > 0. This time, we retry when there are 0 values, by triggering the RetryHelper's exception handler. Fixes dotnet#68291
Tagging subscribers to this area: @dotnet/area-system-diagnostics-performancecounter Issue DetailsPreviously, when pcc.ReadCategory() returned 0 values, we did not retry, Fixes #68291
|
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.
Thank you. LGTM
src/libraries/System.Diagnostics.PerformanceCounter/tests/ZeroDataException.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Diagnostics.PerformanceCounter/tests/InstanceDataTests.cs
Outdated
Show resolved
Hide resolved
thanks! |
Do we need the same fix at runtime/src/libraries/System.Diagnostics.PerformanceCounter/tests/PerformanceCounterCategoryTests.cs Line 299 in 1601356
Does this fix #60933 as well? BTW, perf counter tests have had other random failures (eg #60933 (comment)) .. I'm not clear what is left after fixing ReadCategory(). in such cases it can be interesting to data dive into test history to see what failure modes there were. this can either be done with runfo or against the raw tables with Kusto. If at some point you're interested in learning how to get to this data, you can ask folks such as @ViktorHofer to show you how to use runfo, or I'd be happy to show you Kusto. either work. |
Previously, when pcc.ReadCategory() returned 0 values, we did not retry,
which broke the test that asserted its length > 0. This time, we retry
when there are 0 values, by triggering the RetryHelper's exception
handler.
Fixes #68291