Skip to content

sentry: error.go:88: unexpected error from the vectorized engine: × -- *barriers.barrierError *errutil.withPrefix: unexpected error from the vectorized engine (1) error.go:88: *withstack.withStack (top exception) *assert.withAssertionFailure *colexecerror.notInternalError (check the extra data payloads) #76570

@cockroach-teamcity

Description

@cockroach-teamcity

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

Panic message:

error.go:88: unexpected error from the vectorized engine: ×
--
*barriers.barrierError
*errutil.withPrefix: unexpected error from the vectorized engine (1)
error.go:88: *withstack.withStack (top exception)
*assert.withAssertionFailure
*colexecerror.notInternalError
(check the extra data payloads)

Stacktrace (expand for inline code snippets):

// unexpected.
retErr = errors.NewAssertionErrorWithWrappedErrf(err, "unexpected error from the vectorized engine")
}
in pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1
/usr/local/go/src/runtime/panic.go#L964-L966 in runtime.gopanic
func InternalError(err error) {
panic(err)
}
in pkg/sql/colexecerror.InternalError
// which will take care of closing any inputs.
colexecerror.InternalError(err)
}
in pkg/sql/colexec.(*ParallelUnorderedSynchronizer).Next
bic.stopwatch.Start()
batch = bic.Operator.Next()
bic.stopwatch.Stop()
in pkg/sql/colflow.(*batchInfoCollector).Next
p.spooled = true
for batch := p.Input.Next(); batch.Length() != 0; batch = p.Input.Next() {
p.bufferedTuples.AppendTuples(batch, 0 /* startIdx */, batch.Length())
in pkg/sql/colexec.(*allSpooler).spool
case sortSpooling:
p.input.spool()
p.state = sortSorting
in pkg/sql/colexec.(*sortOp).Next
func() {
batch = d.inMemoryOp.Next()
},
in pkg/sql/colexec.(*diskSpillerBase).Next.func1
}()
operation()
return retErr
in pkg/sql/colexecerror.CatchVectorizedRuntimeError
var batch coldata.Batch
if err := colexecerror.CatchVectorizedRuntimeError(
func() {
in pkg/sql/colexec.(*diskSpillerBase).Next
func (f *fnOp) Next() coldata.Batch {
batch := f.Input.Next()
f.fn()
in pkg/sql/colexec/colexecbase.(*fnOp).Next
func (p *distinctInt16Op) Next() coldata.Batch {
batch := p.Input.Next()
if batch.Length() == 0 {
in pkg/sql/colexec/colexecbase.(*distinctInt16Op).Next
func (e *vectorTypeEnforcer) Next() coldata.Batch {
b := e.Input.Next()
if b.Length() == 0 {
in pkg/sql/colexec/colexecutils.(*vectorTypeEnforcer).Next
func (p *windowSortingPartitioner) Next() coldata.Batch {
b := p.Input.Next()
if b.Length() == 0 {
in pkg/sql/colexec/colexecwindow.(*windowSortingPartitioner).Next
func (e *vectorTypeEnforcer) Next() coldata.Batch {
b := e.Input.Next()
if b.Length() == 0 {
in pkg/sql/colexec/colexecutils.(*vectorTypeEnforcer).Next
case windowLoading:
batch := b.Input.Next()
if batch.Length() == 0 {
in pkg/sql/colexec/colexecwindow.(*bufferedWindowOp).Next
func (d *simpleProjectOp) Next() coldata.Batch {
batch := d.Input.Next()
if batch.Length() == 0 {
in pkg/sql/colexec/colexecbase.(*simpleProjectOp).Next
func (d *simpleProjectOp) Next() coldata.Batch {
batch := d.Input.Next()
if batch.Length() == 0 {
in pkg/sql/colexec/colexecbase.(*simpleProjectOp).Next
bic.stopwatch.Start()
batch = bic.Operator.Next()
bic.stopwatch.Stop()
in pkg/sql/colflow.(*batchInfoCollector).Next
for {
op.lastInputBatch = op.Input.Next()
op.lastInputBatchOrigLen = op.lastInputBatch.Length()
in pkg/sql/colexec.(*unorderedDistinct).Next
func() {
batch = d.inMemoryOp.Next()
},
in pkg/sql/colexec.(*diskSpillerBase).Next.func1
}()
operation()
return retErr
in pkg/sql/colexecerror.CatchVectorizedRuntimeError
var batch coldata.Batch
if err := colexecerror.CatchVectorizedRuntimeError(
func() {
in pkg/sql/colexec.(*diskSpillerBase).Next
bic.stopwatch.Start()
batch = bic.Operator.Next()
bic.stopwatch.Stop()
in pkg/sql/colflow.(*batchInfoCollector).Next
func (r *HashRouter) processNextBatch(ctx context.Context) bool {
b := r.Input.Next()
n := b.Length()
in pkg/sql/colflow.(*HashRouter).processNextBatch
processNextBatch := func() {
done = r.processNextBatch(ctx)
}
in pkg/sql/colflow.(*HashRouter).Run.func1.1
}()
operation()
return retErr
in pkg/sql/colexecerror.CatchVectorizedRuntimeError
if err := colexecerror.CatchVectorizedRuntimeError(processNextBatch); err != nil {
r.cancelOutputs(ctx, err)
in pkg/sql/colflow.(*HashRouter).Run.func1
}()
operation()
return retErr
in pkg/sql/colexecerror.CatchVectorizedRuntimeError
// well for more fine-grained control of error propagation.
if err := colexecerror.CatchVectorizedRuntimeError(func() {
r.Input.Init(ctx)
in pkg/sql/colflow.(*HashRouter).Run
runRouter := func(ctx context.Context, _ context.CancelFunc) {
router.Run(logtags.AddTag(ctx, "hashRouterID", strings.Join(streamIDs, ",")))
}
in pkg/sql/colflow.(*vectorizedFlowCreator).setupRouter.func1
go func() {
run(ctx, flowCtxCancel)
if wg != nil {
in pkg/sql/colflow.(*vectorizedFlowCreatorHelper).accumulateAsyncComponent.func1.1

pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError.func1 at line 88
/usr/local/go/src/runtime/panic.go in runtime.gopanic at line 965
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.InternalError at line 192
pkg/sql/colexec/parallel_unordered_synchronizer.go in pkg/sql/colexec.(*ParallelUnorderedSynchronizer).Next at line 353
pkg/sql/colflow/stats.go in pkg/sql/colflow.(*batchInfoCollector).Next at line 98
pkg/sql/colexec/sort.go in pkg/sql/colexec.(*allSpooler).spool at line 146
pkg/sql/colexec/sort.go in pkg/sql/colexec.(*sortOp).Next at line 283
pkg/sql/colexec/disk_spiller.go in pkg/sql/colexec.(*diskSpillerBase).Next.func1 at line 197
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError at line 91
pkg/sql/colexec/disk_spiller.go in pkg/sql/colexec.(*diskSpillerBase).Next at line 195
pkg/sql/colexec/colexecbase/fn_op.go in pkg/sql/colexec/colexecbase.(*fnOp).Next at line 32
pkg/sql/colexec/colexecbase/distinct.eg.go in pkg/sql/colexec/colexecbase.(*distinctInt16Op).Next at line 959
pkg/sql/colexec/colexecutils/operator.go in pkg/sql/colexec/colexecutils.(*vectorTypeEnforcer).Next at line 137
pkg/sql/colexec/colexecwindow/partitioner.go in pkg/sql/colexec/colexecwindow.(*windowSortingPartitioner).Next at line 74
pkg/sql/colexec/colexecutils/operator.go in pkg/sql/colexec/colexecutils.(*vectorTypeEnforcer).Next at line 137
pkg/sql/colexec/colexecwindow/buffered_window.go in pkg/sql/colexec/colexecwindow.(*bufferedWindowOp).Next at line 222
pkg/sql/colexec/colexecbase/simple_project.go in pkg/sql/colexec/colexecbase.(*simpleProjectOp).Next at line 125
pkg/sql/colexec/colexecbase/simple_project.go in pkg/sql/colexec/colexecbase.(*simpleProjectOp).Next at line 125
pkg/sql/colflow/stats.go in pkg/sql/colflow.(*batchInfoCollector).Next at line 98
pkg/sql/colexec/unordered_distinct.go in pkg/sql/colexec.(*unorderedDistinct).Next at line 95
pkg/sql/colexec/disk_spiller.go in pkg/sql/colexec.(*diskSpillerBase).Next.func1 at line 197
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError at line 91
pkg/sql/colexec/disk_spiller.go in pkg/sql/colexec.(*diskSpillerBase).Next at line 195
pkg/sql/colflow/stats.go in pkg/sql/colflow.(*batchInfoCollector).Next at line 98
pkg/sql/colflow/routers.go in pkg/sql/colflow.(*HashRouter).processNextBatch at line 639
pkg/sql/colflow/routers.go in pkg/sql/colflow.(*HashRouter).Run.func1.1 at line 563
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError at line 91
pkg/sql/colflow/routers.go in pkg/sql/colflow.(*HashRouter).Run.func1 at line 601
pkg/sql/colexecerror/error.go in pkg/sql/colexecerror.CatchVectorizedRuntimeError at line 91
pkg/sql/colflow/routers.go in pkg/sql/colflow.(*HashRouter).Run at line 558
pkg/sql/colflow/vectorized_flow.go in pkg/sql/colflow.(*vectorizedFlowCreator).setupRouter.func1 at line 796
pkg/sql/colflow/vectorized_flow.go in pkg/sql/colflow.(*vectorizedFlowCreatorHelper).accumulateAsyncComponent.func1.1 at line 1322
Tag Value
Cockroach Release v21.2.3
Cockroach SHA: cb0222a
Platform linux amd64
Distribution CCL
Environment development
Command server
Go Version ``
# of CPUs
# of Goroutines

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-sentryOriginated from an in-the-wild panic report.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions