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

util/log: de-flake TestSecondaryGC and some SQL tests #57454

Merged
merged 2 commits into from
Dec 3, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented Dec 3, 2020

Fixes #57442
Fixes #57444

See individual commits for details.

The GC daemon was performing an unconditional round of deletion,
asynchronously with the start of the test. This was causing a race
condition.

Release note: None
@knz knz requested review from itsbilal and irfansharif December 3, 2020 13:01
@cockroach-teamcity
Copy link
Member

This change is Reviewable

As discussed previously in cockroachdb#57222 - the SQL servers do not obey the
server stop logic well and leak goroutines that continue to log while
the TestLogScope gets closed.

This commit continues to tolerate this misdesign by ensuring that
some more stderr-related flags are accessed atomically.

Release note: None
@knz knz changed the title util/log: de-flake TestSecondaryGC util/log: de-flake TestSecondaryGC and some SQL tests Dec 3, 2020
@knz
Copy link
Contributor Author

knz commented Dec 3, 2020

thanks!

bors r=irfansharif

@craig
Copy link
Contributor

craig bot commented Dec 3, 2020

Build succeeded:

@craig craig bot merged commit ac6463f into cockroachdb:master Dec 3, 2020
@knz knz deleted the 20201203-deflake-log branch December 3, 2020 17:03
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.

sql: TestCleanupSchemaObjects failed util/log: TestSecondaryGC failed
3 participants