Skip to content

*: avoid direct uses of pgerror.CodeInternalError#35731

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20190314-interr
Mar 14, 2019
Merged

*: avoid direct uses of pgerror.CodeInternalError#35731
craig[bot] merged 1 commit intocockroachdb:masterfrom
knz:20190314-interr

Conversation

@knz
Copy link
Copy Markdown
Contributor

@knz knz commented Mar 14, 2019

This patch ensures that internal errors / assertion failures are
instantiated with pgerror.NewAssertionErrorf (with a linter to also
enforce in the future).

This is in advance of equipping the constructor with a stack trace
collection service.

Release note: None

@knz knz requested review from RaduBerinde and jordanlewis March 14, 2019 11:44
@knz knz requested a review from a team as a code owner March 14, 2019 11:44
@knz knz requested review from a team March 14, 2019 11:44
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@knz knz force-pushed the 20190314-interr branch from ac4e431 to ef3d024 Compare March 14, 2019 12:12
This patch ensures that internal errors / assertion failures are
instantiated with `pgerror.NewAssertionErrorf` (with a linter to also
enforce in the future).

This is in advance of equipping the constructor with a stack trace
collection service.

Release note: None
@knz knz force-pushed the 20190314-interr branch from ef3d024 to 16e921a Compare March 14, 2019 12:25
@knz knz requested a review from a team March 14, 2019 12:25
@knz
Copy link
Copy Markdown
Contributor Author

knz commented Mar 14, 2019

TFYR!

bors r+

craig bot pushed a commit that referenced this pull request Mar 14, 2019
35731: *: avoid direct uses of pgerror.CodeInternalError r=knz a=knz

This patch ensures that internal errors / assertion failures are
instantiated with `pgerror.NewAssertionErrorf` (with a linter to also
enforce in the future).

This is in advance of equipping the constructor with a stack trace
collection service.

Release note: None

Co-authored-by: Raphael 'kena' Poss <knz@cockroachlabs.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 14, 2019

Build succeeded

@craig craig bot merged commit 16e921a into cockroachdb:master Mar 14, 2019
vivekmenezes added a commit to vivekmenezes/cockroach that referenced this pull request Mar 18, 2019
craig bot pushed a commit that referenced this pull request Mar 18, 2019
35851: sql: fix catch context deadline exceeded error in schema changer r=vivekmenezes a=vivekmenezes

this is a fix for change #35731

fixes #35743 
fixes #35782 

Release note: None

Co-authored-by: Vivek Menezes <vivek@cockroachlabs.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