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: table.go:273: error resolving table 4148 referenced in foreign key: × -- *barriers.barrierError: details for github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgerror/*pgerror.withCandidateCode::: (1) *errutil.withPrefix: error resolving table 4148 referenced in foreign key (2) table.go:273: *withstack.withStack (top exception) *assert.withAssertionFailure (check the extra data payloads) #71508

Closed
cockroach-teamcity opened this issue Oct 13, 2021 · 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/2714032420/?referrer=webhooks_plugin

Panic message:

table.go:273: error resolving table 4148 referenced in foreign key: ×
--
*barriers.barrierError: details for github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgerror/*pgerror.withCandidateCode::: (1)
*errutil.withPrefix: error resolving table 4148 referenced in foreign key (2)
table.go:273: *withstack.withStack (top exception)
*assert.withAssertionFailure
(check the extra data payloads)

Stacktrace (expand for inline code snippets):

if err != nil {
return nil, errors.NewAssertionErrorWithWrappedErrf(err,
"error resolving table %d referenced in foreign key",
in pkg/sql/catalog/tabledesc.(*Immutable).collectConstraintInfo
) (map[string]descpb.ConstraintDetail, error) {
return desc.collectConstraintInfo(tableLookup)
}
in pkg/sql/catalog/tabledesc.(*Immutable).GetConstraintInfoWithLookup
}
conInfo, err := table.GetConstraintInfoWithLookup(tableLookup.getTableByID)
if err != nil {
in pkg/sql.glob..func100.1
}
if err := fn(dbDesc, scName, table, lCtx); err != nil {
return err
in pkg/sql.forEachTableDescWithTableLookupInternal
) error {
return forEachTableDescWithTableLookupInternal(ctx, p, dbContext, virtualOpts, false /* allowAdding */, fn)
}
in pkg/sql.forEachTableDescWithTableLookup
h := makeOidHasher()
return forEachTableDescWithTableLookup(ctx, p, dbContext, hideVirtual /*virtual tables have no constraints*/, func(
db *dbdesc.Immutable,
in pkg/sql.glob..func100
generator, cleanup := setupGenerator(ctx, func(pusher rowPusher) error {
return def.populate(ctx, p, dbDesc, func(row ...tree.Datum) error {
if err := e.validateRow(row, columns); err != nil {
in pkg/sql.virtualDefEntry.getPlanInfo.func1.1
}
err := worker(funcRowPusher(addRow))
// If the query was canceled, next() will already return a
in pkg/sql.setupGenerator.func2
/usr/local/go/src/runtime/asm_amd64.s#L1356-L1358 in runtime.goexit

pkg/sql/catalog/tabledesc/table.go in pkg/sql/catalog/tabledesc.(*Immutable).collectConstraintInfo at line 273
pkg/sql/catalog/tabledesc/table.go in pkg/sql/catalog/tabledesc.(*Immutable).GetConstraintInfoWithLookup at line 195
pkg/sql/pg_catalog.go in pkg/sql.glob..func100.1 at line 1356
pkg/sql/information_schema.go in pkg/sql.forEachTableDescWithTableLookupInternal at line 1920
pkg/sql/information_schema.go in pkg/sql.forEachTableDescWithTableLookup at line 1825
pkg/sql/pg_catalog.go in pkg/sql.glob..func100 at line 1333
pkg/sql/virtual_schema.go in pkg/sql.virtualDefEntry.getPlanInfo.func1.1 at line 492
pkg/sql/virtual_table.go in pkg/sql.setupGenerator.func2 at line 115
/usr/local/go/src/runtime/asm_amd64.s in runtime.goexit at line 1357
Tag Value
Cockroach Release v20.2.0
Cockroach SHA: 150c591
Platform linux amd64
Distribution CCL
Environment v20.2.0
Command server
Go Version ``
# of CPUs
# of Goroutines
@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 Oct 13, 2021
@yuzefovich
Copy link
Member

dup of #63237

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