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

storage: remove test-only data race #29341

Merged
merged 1 commit into from
Aug 30, 2018
Merged

Conversation

tbg
Copy link
Member

@tbg tbg commented Aug 30, 2018

The test was stopping the engine before the stopper, so the compactor
was sometimes able to use the engine while it was being closed.

Fixes #29302.

Release note: None

The test was stopping the engine before the stopper, so the compactor
was sometimes able to use the engine while it was being closed.

Fixes cockroachdb#29302.

Release note: None
@tbg tbg requested a review from a team August 30, 2018 14:19
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)

@tbg
Copy link
Member Author

tbg commented Aug 30, 2018

bors r=petermattis

@tbg
Copy link
Member Author

tbg commented Aug 30, 2018

come to think of it, I should wait for TC first

bors r-

@craig
Copy link
Contributor

craig bot commented Aug 30, 2018

Canceled

@tbg
Copy link
Member Author

tbg commented Aug 30, 2018

bors r=petermattis

craig bot pushed a commit that referenced this pull request Aug 30, 2018
29244: sql: correctly handle NULL arrays in generator funcs r=mjibson a=mjibson

Change both unnest and _pg_expandarray to return UnknownReturnType if
passed NULL as their first argument during type checking. Teach the type
checker that if a func returns UnknownReturnType after type checking,
then it is because we didn't have enough information to generate a
correct type, and so should produce an error immediately. If these
funcs are passed a NULL array during execution (after type checking),
they should still succeed.

Also fix evalAndReplaceSubqueryVisitor to correctly type expressions
during subquery replacement which allows the previous change to work
both in local and distsql execution.

Fixes #29239 
Fixes #28561

Release note (bug fix): The functions `unnest` and `_pg_expandarray`
now return an error when called with NULL as their first argument.

29341: storage: remove test-only data race r=petermattis a=tschottdorf

The test was stopping the engine before the stopper, so the compactor
was sometimes able to use the engine while it was being closed.

Fixes #29302.

Release note: None

Co-authored-by: Matt Jibson <[email protected]>
Co-authored-by: Tobias Schottdorf <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 30, 2018

Build succeeded

@craig craig bot merged commit e29f8cc into cockroachdb:master Aug 30, 2018
@tbg tbg deleted the fix/stopper-race branch September 21, 2018 11:33
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.

storage: race condition in TestRaftSSTableSideloadingSnapshot
3 participants