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

HttpClientMiniStressTest: Disable parallelism #34941

Merged
merged 2 commits into from
Apr 14, 2020
Merged

HttpClientMiniStressTest: Disable parallelism #34941

merged 2 commits into from
Apr 14, 2020

Conversation

TalAloni
Copy link
Contributor

@TalAloni TalAloni commented Apr 14, 2020

Currently, it's possible for 4 different instances of SingleClient_ManyGets_Sync to run in parallel, each using up to 2 x 5000 sockets, totaling in 40,000 sockets. way beyond the original intent of testing 5000 client instances. since this additional stress is random in nature, I believe it is not intentional.
This change prevents those tests from running in parallel, this avoids some issues I've encountered in some systems.

Currently, it's possible for 4 different instances of SingleClient_ManyGets_Sync to run in parallel, each using up to 2 x 5000 sockets, totaling in 40,000 sockets. way beyond the original intent of testing 5000 client instances. since this additional stress is random in nature, I believe it is not intentional.
This change make sure that those tests will not run in parallel, this avoids some issues I've encountered in some systems.
@ghost
Copy link

ghost commented Apr 14, 2020

Tagging subscribers to this area: @dotnet/ncl
Notify danmosemsft if you want to be subscribed.

@TalAloni
Copy link
Contributor Author

I'm checking if I can use this attribute on the base class, please don't merge yet.

@TalAloni
Copy link
Contributor Author

Great, it's now a single line change, thanks for the quick feedback!
I think it's worth pushing this to the 3.x branch as well.

@stephentoub
Copy link
Member

I think it's worth pushing this to the 3.x branch as well.

Thanks, but I don't think it's necessary. These tests don't run in CI, and are only manually-enabled via an environment variable. They're really only intended for use when doing active development for things like performance to help minimize the chances of concurrency bugs sneaking in.

@davidsh davidsh added this to the 5.0 milestone Apr 14, 2020
@davidsh davidsh added the test-enhancement Improvements of test source code label Apr 14, 2020
@stephentoub stephentoub merged commit d71cf79 into dotnet:master Apr 14, 2020
@TalAloni TalAloni deleted the TalAloni-HttpClientMiniStressTest-DisableParallelism-1 branch April 15, 2020 00:24
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Http test-enhancement Improvements of test source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants