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

sqlmigrations: prevent schema change noise upon cluster creation #46832

Merged
merged 2 commits into from
Apr 1, 2020

Conversation

knz
Copy link
Contributor

@knz knz commented Apr 1, 2020

First commit from #46829.
Informs #46757.

The system.comments is now created without write permission to
public. No need to re-do that change on every new cluster.

Release note: None

@knz knz requested a review from thoszhang April 1, 2020 08:09
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@thoszhang thoszhang left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @lucy-zhang)

In cockroachdb#46588 a bug was introduced when a retriable error was encountered while
using a new transaction for preparing. Prior to that commit, all error were
treated as not retriable. This was sort of a bummer. Retriable errors can
occur due to read within uncertainty. Before this PR, those retriable errors
would make their way to the client. Now we'll handle those retry errors
internally underneath `connExecutor.prepare`

Fixes cockroachdb#43251

Release note: None
@knz knz force-pushed the 20200401-vers branch 2 times, most recently from 24934e6 to 75f1439 Compare April 1, 2020 18:21
@knz
Copy link
Contributor Author

knz commented Apr 1, 2020

bors r=lucy-zhang

@knz
Copy link
Contributor Author

knz commented Apr 1, 2020

bors r-

@craig
Copy link
Contributor

craig bot commented Apr 1, 2020

Canceled

@knz knz force-pushed the 20200401-vers branch from 75f1439 to a00f504 Compare April 1, 2020 18:31
@knz
Copy link
Contributor Author

knz commented Apr 1, 2020

bors r=lucy-zhang

@craig
Copy link
Contributor

craig bot commented Apr 1, 2020

Build failed (retrying...)

@knz
Copy link
Contributor Author

knz commented Apr 1, 2020

lemme take this out of the queue until its CI finishes

bors r-

@craig
Copy link
Contributor

craig bot commented Apr 1, 2020

Canceled

The system.comments is now created without write permission to
role public. No need to re-do that change on every new cluster.

Release note: None

Co-authored-by: Lucy Zhang <[email protected]>
@knz knz force-pushed the 20200401-vers branch from a00f504 to de30021 Compare April 1, 2020 19:33
@knz
Copy link
Contributor Author

knz commented Apr 1, 2020

bors r=lucy-zhang

@thoszhang
Copy link
Contributor

@knz did you intend for that first commit to be included?

@knz
Copy link
Contributor Author

knz commented Apr 1, 2020

yes - it didn't pass CI otherwise. But that first commit is currently being merged by bors so it will be in the master branch by the time bors gets to this.

@thoszhang
Copy link
Contributor

I figured that was the reason. It looks like they're queued up in the same batch, though, and I was wondering if bors handles that correctly (I guess I'll find out shortly).

@knz
Copy link
Contributor Author

knz commented Apr 1, 2020

it does (I have used this before). In the occasional case where they don't fit in the same batch, it still all works out because git is clever at reusing commits when the SHAs are identical.

@craig
Copy link
Contributor

craig bot commented Apr 1, 2020

Build succeeded

@craig craig bot merged commit 3b3c470 into cockroachdb:master Apr 1, 2020
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.

4 participants