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: *errors.errorString *safedetails.withSafeDetails: parentID %d does not exist (1) structured.go:1544: *withstack.withStack (2) *assert.withAssertionFailure *errutil.withMessage *safedetails.withSafeDetails: get-hashed-pwd (3) internal.go:472: *withstack.withStack (4) *errutil.withMessage *safedetails.withSafeDetails: error looking up user %s (5) user.go:38: *withstack.withStack (6) (check the extra data payloads) #44851

Closed
cockroach-teamcity opened this issue Feb 7, 2020 · 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/1501443459/?referrer=webhooks_plugin

Panic message:

*errors.errorString
*safedetails.withSafeDetails: parentID %d does not exist (1)
structured.go:1544: *withstack.withStack (2)
*assert.withAssertionFailure
*errutil.withMessage
*safedetails.withSafeDetails: get-hashed-pwd (3)
internal.go:472: *withstack.withStack (4)
*errutil.withMessage
*safedetails.withSafeDetails: error looking up user %s (5)
user.go:38: *withstack.withStack (6)
(check the extra data payloads)

Stacktrace (expand for inline code snippets):

if !res.Exists() {
return errors.AssertionFailedf("parentID %d does not exist", errors.Safe(desc.ParentID))
}
in pkg/sql/sqlbase.(*TableDescriptor).validateCrossReferences
}
return desc.validateCrossReferences(ctx, txn)
}
in pkg/sql/sqlbase.(*TableDescriptor).Validate
if err := table.Validate(ctx, txn); err != nil {
return err
in pkg/sql.getDescriptorByID
desc := &sqlbase.TableDescriptor{}
err = getDescriptorByID(ctx, txn, descID, desc)
if err != nil {
in pkg/sql.UncachedPhysicalAccessor.GetObjectDesc

cockroach/pkg/sql/table.go

Lines 267 to 269 in 3cbd056

phyAccessor := UncachedPhysicalAccessor{}
obj, err := phyAccessor.GetObjectDesc(ctx, txn, tn, flags)
if obj == nil {
in pkg/sql.(*TableCollection).getTableVersion.func1

cockroach/pkg/sql/table.go

Lines 275 to 277 in 3cbd056

if avoidCache {
return readTableFromStore()
}
in pkg/sql.(*TableCollection).getTableVersion
}
table, err := a.tc.getTableVersion(ctx, txn, name, flags)
if table == nil {
in pkg/sql.(*CachedPhysicalAccessor).GetObjectDesc
// Fallthrough.
return l.SchemaAccessor.GetObjectDesc(ctx, txn, name, flags)
}
in pkg/sql.(*LogicalSchemaAccessor).GetObjectDesc
lookupFlags.CommonLookupFlags = p.CommonLookupFlags(false /* required */)
objDesc, err := sc.GetObjectDesc(ctx, p.txn, &p.tableName, lookupFlags)
return objDesc != nil, objDesc, err
in pkg/sql.(*planner).LookupObject
// No luck so far. Compatibility with CockroachDB v1.1: try D.public.T instead.
if found, objMeta, err := r.LookupObject(ctx, lookupFlags, t.Schema(), PublicSchema, t.Table()); found || err != nil {
if err == nil {
in pkg/sql/sem/tree.(*TableName).ResolveExisting
) (res tree.NameResolutionResult, err error) {
found, descI, err := tn.ResolveExisting(ctx, sc, lookupFlags, sc.CurrentDatabase(), sc.CurrentSearchPath())
if err != nil {
in pkg/sql.resolveExistingObjectImpl
) (res *ImmutableTableDescriptor, err error) {
desc, err := resolveExistingObjectImpl(ctx, sc, tn, lookupFlags, requiredType)
if err != nil || desc == nil {
in pkg/sql.ResolveExistingObject
oc.tn = *name
desc, err := ResolveExistingObject(ctx, oc.planner, &oc.tn, tree.ObjectLookupFlagsWithRequired(), ResolveAnyDescType)
if err != nil {
in pkg/sql.(*optCatalog).ResolveDataSource
// Resolve data source object.
toCheck, _, err = catalog.ResolveDataSource(ctx, cat.Flags{}, &name.byName)
}
in pkg/sql/opt.(*Metadata).CheckDependencies
// access the object.
if depsUpToDate, err := m.Metadata().CheckDependencies(ctx, catalog); err != nil {
return true, err
in pkg/sql/opt/memo.(*Memo).IsStale
} else {
isStale, err := cachedData.Memo.IsStale(ctx, p.EvalContext(), &opc.catalog)
if err != nil {
in pkg/sql.(*planner).prepareUsingOptimizer
// future.
flags, err := p.prepareUsingOptimizer(ctx)
if err != nil {
in pkg/sql.(*connExecutor).populatePrepared
p.stmt = &stmt
flags, err := ex.populatePrepared(ctx, txn, placeholderHints, p)
if err != nil {
in pkg/sql.(*connExecutor).prepare
// Prepare the query. This completes the typing of placeholders.
prepared, err := ex.prepare(ctx, stmt, placeholderHints)
if err != nil {
in pkg/sql.(*connExecutor).addPreparedStmt
ps, err := ex.addPreparedStmt(
ctx, parseCmd.Name, Statement{Statement: parseCmd.Statement}, parseCmd.TypeHints,
in pkg/sql.(*connExecutor).execPrepare
stmtCtx := withStatement(ctx, ex.curStmt)
ev, payload = ex.execPrepare(stmtCtx, tcmd)
case DescribeStmt:
in pkg/sql.(*connExecutor).execCmd
var err error
if err = ex.execCmd(ex.Ctx()); err != nil {
if err == io.EOF || err == errDrainingComplete {
in pkg/sql.(*connExecutor).run
go func() {
if err := ex.run(ctx, ie.mon, mon.BoundAccount{} /*reserved*/, nil /* cancel */); err != nil {
ex.recordError(ctx, err)
in pkg/sql.(*internalExecutorImpl).initConnEx.func1
/usr/local/go/src/runtime/asm_amd64.s#L1336-L1338 in runtime.goexit

pkg/sql/sqlbase/structured.go in pkg/sql/sqlbase.(*TableDescriptor).validateCrossReferences at line 1544
pkg/sql/sqlbase/structured.go in pkg/sql/sqlbase.(*TableDescriptor).Validate at line 1531
pkg/sql/descriptor.go in pkg/sql.getDescriptorByID at line 183
pkg/sql/physical_schema_accessors.go in pkg/sql.UncachedPhysicalAccessor.GetObjectDesc at line 160
pkg/sql/table.go in pkg/sql.(*TableCollection).getTableVersion.func1 at line 268
pkg/sql/table.go in pkg/sql.(*TableCollection).getTableVersion at line 276
pkg/sql/physical_schema_accessors.go in pkg/sql.(*CachedPhysicalAccessor).GetObjectDesc at line 238
pkg/sql/logical_schema_accessors.go in pkg/sql.(*LogicalSchemaAccessor).GetObjectDesc at line 93
pkg/sql/resolver.go in pkg/sql.(*planner).LookupObject at line 293
pkg/sql/sem/tree/name_resolution.go in pkg/sql/sem/tree.(*TableName).ResolveExisting at line 297
pkg/sql/resolver.go in pkg/sql.resolveExistingObjectImpl at line 141
pkg/sql/resolver.go in pkg/sql.ResolveExistingObject at line 102
pkg/sql/opt_catalog.go in pkg/sql.(*optCatalog).ResolveDataSource at line 169
pkg/sql/opt/metadata.go in pkg/sql/opt.(*Metadata).CheckDependencies at line 220
pkg/sql/opt/memo/memo.go in pkg/sql/opt/memo.(*Memo).IsStale at line 279
pkg/sql/plan_opt.go in pkg/sql.(*planner).prepareUsingOptimizer at line 83
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).populatePrepared at line 204
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).prepare at line 159
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).addPreparedStmt at line 97
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).execPrepare at line 51
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).execCmd at line 1313
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).run at line 1172
pkg/sql/internal.go in pkg/sql.(*internalExecutorImpl).initConnEx.func1 at line 202
/usr/local/go/src/runtime/asm_amd64.s in runtime.goexit at line 1337
Tag Value
Cockroach Release v19.2.2
Cockroach SHA: 3cbd056
Platform linux amd64
Distribution CCL
Environment v19.2.2
Command server
Go Version go1.12.12
# of CPUs 8
# of Goroutines 808
@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 Feb 7, 2020
@yuzefovich
Copy link
Member

Seems like a dup of #44850.

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