Skip to content

sqlmigrations: prevent schema change noise upon cluster creation#46832

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
knz:20200401-vers
Apr 1, 2020
Merged

sqlmigrations: prevent schema change noise upon cluster creation#46832
craig[bot] merged 2 commits intocockroachdb:masterfrom
knz:20200401-vers

Conversation

@knz
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown

@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
Copy Markdown
Contributor Author

knz commented Apr 1, 2020

bors r=lucy-zhang

@knz
Copy link
Copy Markdown
Contributor Author

knz commented Apr 1, 2020

bors r-

@craig
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

knz commented Apr 1, 2020

bors r=lucy-zhang

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 1, 2020

Build failed (retrying...)

@knz
Copy link
Copy Markdown
Contributor Author

knz commented Apr 1, 2020

lemme take this out of the queue until its CI finishes

bors r-

@craig
Copy link
Copy Markdown
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 <lucy-zhang@users.noreply.github.com>
@knz knz force-pushed the 20200401-vers branch from a00f504 to de30021 Compare April 1, 2020 19:33
@knz
Copy link
Copy Markdown
Contributor Author

knz commented Apr 1, 2020

bors r=lucy-zhang

@thoszhang
Copy link
Copy Markdown

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

@knz
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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.

3 participants