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

sem/builtins: vectorized engine no longer catches crdb_internal.force_panic #63178

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

yuzefovich
Copy link
Member

Previously, when executing crdb_internal.force_panic builtin, if it
was executed via the vectorized engine, we would catch the panic and
convert it into an internal error instead. This is undesirable and is
now fixed.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

…_panic

Previously, when executing `crdb_internal.force_panic` builtin, if it
was executed via the vectorized engine, we would catch the panic and
convert it into an internal error instead. This is undesirable and is
now fixed.

Release note: None
@yuzefovich yuzefovich changed the title sem/builtins: vectorized engine doesn't catch crdb_internal.force_panic sem/builtins: vectorized engine no longer catches crdb_internal.force_panic Apr 6, 2021
@yuzefovich
Copy link
Member Author

This behavior was only introduced last week: #62889.

Copy link
Member

@RaduBerinde RaduBerinde 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! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @michae2)

Copy link
Collaborator

@michae2 michae2 left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 5 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @yuzefovich)


pkg/sql/sem/builtins/builtins.go, line 4085 at r1 (raw file):

				// This code is unreachable.
				panic(msg)

Why leave it in, then? For some sort of static analysis?

Copy link
Member Author

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

TFTRs!

bors r+

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @michae2)


pkg/sql/sem/builtins/builtins.go, line 4085 at r1 (raw file):

Previously, michae2 (Michael Erickson) wrote…
				// This code is unreachable.
				panic(msg)

Why leave it in, then? For some sort of static analysis?

The compiler complains - it cannot prove to itself that this line is unreachable, so it expects either Golang's panic or return ...; I chose the former. This fact is one of the annoyances of using colexecerror methods.

@craig
Copy link
Contributor

craig bot commented Apr 7, 2021

Build succeeded:

@craig craig bot merged commit 651184b into cockroachdb:master Apr 7, 2021
@yuzefovich yuzefovich deleted the vec-crash branch April 7, 2021 01:47
@rafiss rafiss added this to the 21.1 milestone Apr 22, 2021
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.

5 participants