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

sentry: (0) encoded_datum.go:220: decoding unset EncDatum | string (1) statement: SELECT * FROM _ AS _ ORDER BY _ DESC LIMIT _ OFFSET _ (see stack traces in additional data) #42281

Closed
cockroach-teamcity opened this issue Nov 7, 2019 · 1 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.

Comments

@cockroach-teamcity
Copy link
Member

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/1321600260/?referrer=webhooks_plugin

Panic message:

(0) encoded_datum.go:220: decoding unset EncDatum | string
(1) statement: SELECT * FROM _ AS _ ORDER BY _ DESC LIMIT _ OFFSET _
(see stack traces in additional data)

Stacktrace (expand for inline code snippets):

if ed.encoded == nil {
return pgerror.NewAssertionErrorf("decoding unset EncDatum")
}
in pkg/sql/sqlbase.(*EncDatum).EnsureDecoded
}
if err := ed.EnsureDecoded(typ, a); err != nil {
return nil, err
in pkg/sql/sqlbase.(*EncDatum).Encode
var err error
se.rowBuf, err = row[i].Encode(&se.infos[i].Type, &se.alloc, se.infos[i].Encoding, se.rowBuf)
if err != nil {
in pkg/sql/distsqlrun.(*StreamEncoder).AddRow
} else {
encodingErr = m.encoder.AddRow(row)
if encodingErr != nil {
in pkg/sql/distsqlrun.(*outbox).addRow
// If we're draining, we ignore all the rows and just send metadata.
err := m.addRow(ctx, msg.Row, msg.Meta)
if err != nil {
in pkg/sql/distsqlrun.(*outbox).mainLoop
func (m *outbox) run(ctx context.Context, wg *sync.WaitGroup) {
err := m.mainLoop(ctx)
if stream, ok := m.stream.(distsqlpb.DistSQL_FlowStreamClient); ok {
in pkg/sql/distsqlrun.(*outbox).run

pkg/sql/sqlbase/encoded_datum.go in pkg/sql/sqlbase.(*EncDatum).EnsureDecoded at line 220
pkg/sql/sqlbase/encoded_datum.go in pkg/sql/sqlbase.(*EncDatum).Encode at line 265
pkg/sql/distsqlrun/stream_encoder.go in pkg/sql/distsqlrun.(*StreamEncoder).AddRow at line 146
pkg/sql/distsqlrun/outbox.go in pkg/sql/distsqlrun.(*outbox).addRow at line 130
pkg/sql/distsqlrun/outbox.go in pkg/sql/distsqlrun.(*outbox).mainLoop at line 293
pkg/sql/distsqlrun/outbox.go in pkg/sql/distsqlrun.(*outbox).run at line 413
Tag Value
Cockroach Release v19.1.3
Cockroach SHA: 1a14d34
Platform linux amd64
Distribution CCL
Environment v19.1.3
Command server
Go Version go1.11.6
# of CPUs 12
# of Goroutines 1426
@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 Nov 7, 2019
@jordanlewis
Copy link
Member

#41630

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.
Projects
None yet
Development

No branches or pull requests

2 participants