Skip to content

Fix data race in vtgate unit test.#962

Merged
michael-berlin merged 7 commits intovitessio:masterfrom
michael-berlin:fix_racy_test
Aug 5, 2015
Merged

Fix data race in vtgate unit test.#962
michael-berlin merged 7 commits intovitessio:masterfrom
michael-berlin:fix_racy_test

Conversation

@michael-berlin
Copy link
Copy Markdown
Contributor

Changed sync2.Atomic* types to make sure they cannot be used without going through the atomic interface.

@sougou @guoliang100 @alainjobart

I suggest to review commit by commit and not using the "Files changed" tab.

@alainjobart
Copy link
Copy Markdown
Contributor

This is great. Definitely will make the unit tests less flaky.

(I submitted a one-line fix to a race condition I saw, should be the same fix as yours, so the merge should be easy, sorry about that).

LGTM

@sougou
Copy link
Copy Markdown
Contributor

sougou commented Aug 5, 2015

LGTM

michael-berlin added a commit that referenced this pull request Aug 5, 2015
Fix data race in vtgate unit test.
@michael-berlin michael-berlin merged commit 883b931 into vitessio:master Aug 5, 2015
@michael-berlin michael-berlin deleted the fix_racy_test branch August 5, 2015 19:04
systay pushed a commit to planetscale/vitess that referenced this pull request Aug 19, 2022
…ssued cancellation (vitessio#11011) (vitessio#962)

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants