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

sql: v21.2.4: unknown describe type: PrepareType #82785

Closed
cockroach-teamcity opened this issue Jun 11, 2022 · 1 comment · Fixed by #83929
Closed

sql: v21.2.4: unknown describe type: PrepareType #82785

cockroach-teamcity opened this issue Jun 11, 2022 · 1 comment · Fixed by #83929
Assignees
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Jun 11, 2022

This issue was autofiled by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.

Sentry link: https://sentry.io/organizations/cockroach-labs/issues/3341859878/?referrer=webhooks_plugin

Panic message:

conn_executor_prepare.go:559: unknown describe type: PrepareType(0)
--
*errutil.leafError: unknown describe type: PrepareType(0) (1)
conn_executor_prepare.go:559: *withstack.withStack (top exception)
*assert.withAssertionFailure
(check the extra data payloads)

Stacktrace (expand for inline code snippets):

default:
return retErr(errors.AssertionFailedf(
"unknown describe type: %s", errors.Safe(descCmd.Type)))
in pkg/sql.(*connExecutor).execDescribe
res = descRes
ev, payload = ex.execDescribe(ctx, tcmd, descRes)
case BindStmt:
in pkg/sql.(*connExecutor).execCmd
var err error
if err = ex.execCmd(ex.Ctx()); err != nil {
if errors.IsAny(err, io.EOF, errDrainingComplete) {
in pkg/sql.(*connExecutor).run
}()
return h.ex.run(ctx, s.pool, reserved, cancel)
}
in pkg/sql.(*Server).ServeConn
reservedOwned = false // We're about to pass ownership away.
retErr = sqlServer.ServeConn(ctx, connHandler, reserved, cancelConn)
}()
in pkg/sql/pgwire.(*conn).processCommandsAsync.func1
/usr/local/go/src/runtime/asm_amd64.s#L1370-L1372 in runtime.goexit

pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).execDescribe at line 559
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).execCmd at line 1803
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).run at line 1631
pkg/sql/conn_executor.go in pkg/sql.(*Server).ServeConn at line 670
pkg/sql/pgwire/conn.go in pkg/sql/pgwire.(*conn).processCommandsAsync.func1 at line 648
/usr/local/go/src/runtime/asm_amd64.s in runtime.goexit at line 1371
Tag Value
Cockroach Release v21.2.4
Cockroach SHA: 0c8df44
Platform darwin amd64
Distribution CCL
Environment development
Command start-single-node
Go Version ``
# of CPUs
# of Goroutines

Jira issue: CRDB-16660
Epic CRDB-14049

@cockroach-teamcity cockroach-teamcity added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report. labels Jun 11, 2022
@yuzefovich yuzefovich changed the title sentry: conn_executor_prepare.go:559: unknown describe type: PrepareType(0) -- *errutil.leafError: unknown describe type: PrepareType(0) (1) conn_executor_prepare.go:559: *withstack.withStack (top exception) ... sql: v21.2.4: unknown describe type: PrepareType Jun 28, 2022
@blathers-crl blathers-crl bot added the T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) label Jun 28, 2022
@rafiss
Copy link
Collaborator

rafiss commented Jun 28, 2022

We should be able to change this to a user-friendly error instead of an assertion error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. O-sentry Originated from an in-the-wild panic report. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants