Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

SqlClient add concurrent load tests#37027

Merged
AfsanehR-zz merged 2 commits into
dotnet:masterfrom
Wraith2:sqltest-concurrentload
Apr 22, 2019
Merged

SqlClient add concurrent load tests#37027
AfsanehR-zz merged 2 commits into
dotnet:masterfrom
Wraith2:sqltest-concurrentload

Conversation

@Wraith2

@Wraith2 Wraith2 commented Apr 19, 2019

Copy link
Copy Markdown
Contributor

When investigating a concurrency bug I had introduced in SqlEnvChange it was suggested that the DataAccessPerformance benchmarking project that I had been using could be transformed into a test to make sure coverage of continuous concurrent loading was covered in case similar issues are added again. This PR adds those tests.

There are two tests, one each for sync and async. Each tests will warmup for 1 second, execute for 60 seconds and create tasks over 4x the physical core count to ensure that there is contention. The data being read is from the sample Northwind database already used in the manual test project and is similar in shape and types to the Fortunes test of the original. The tests have been added in ProviderAgnostic\ReaderTest as TestConcurrentLoadSync and TestConcurrentLoadAsync because they can be re-used by other providers simply by changing the factory parameter.

/cc @afsanehr, @tarikulsabbir, @Gary-Zh , @David-Engel, @saurabh500

this should unblock #36664 and #36108

@saurabh500

Copy link
Copy Markdown
Contributor

@afsanehr will put this through the CI and merge.

@AfsanehR-zz

Copy link
Copy Markdown
Contributor

Successfully passed the tests.

@AfsanehR-zz AfsanehR-zz merged commit a3ab91e into dotnet:master Apr 22, 2019
@Wraith2 Wraith2 deleted the sqltest-concurrentload branch April 25, 2019 19:20
@karelz karelz added this to the 3.0 milestone May 4, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…tload

SqlClient add concurrent load tests

Commit migrated from dotnet/corefx@a3ab91e
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants