cockroachdb / cockroachdb/cockroach

basalt-26.3.2-rc-20260916: sql/stats: TestCacheAutoRefresh failed

Open
#175,698 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

branch-basalt-26.3.2-rc-20260916 C-test-failure O-robot T-sql-queries
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

sql/stats.TestCacheAutoRefresh failed on basalt-26.3.2-rc-20260916 @ 024cf0f74e8abea8b9fe2f4a05441dac7dc66c41:

github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError(0xc0201840c8)
	pkg/sql/colexecerror/error.go:162 +0x79
github.com/cockroachdb/cockroach/pkg/sql/colexec.(*Materializer).Next(0xc0245dea80)
	pkg/sql/colexec/materializer.go:282 +0x85
github.com/cockroachdb/cockroach/pkg/sql/colflow.(*FlowCoordinator).next(0xc0106fbb00)
	pkg/sql/colflow/flow_coordinator.go:121 +0x66
github.com/cockroachdb/cockroach/pkg/sql/colflow.(*FlowCoordinator).nextAdapter(...)
	pkg/sql/colflow/flow_coordinator.go:138
github.com/cockroachdb/cockroach/pkg/sql/colexecerror.CatchVectorizedRuntimeError(0xc020184248)
	pkg/sql/colexecerror/error.go:162 +0x79
github.com/cockroachdb/cockroach/pkg/sql/colflow.(*FlowCoordinator).Next(0xc0106fbb00)
	pkg/sql/colflow/flow_coordinator.go:143 +0x5f
github.com/cockroachdb/cockroach/pkg/sql/execinfra.Run({0xa4ec6c8, 0xc00abe8e60}, {0xa51f5a0, 0xc0106fbb00}, {0xa4b1338, 0xc016a8a908})
	pkg/sql/execinfra/base.go:193 +0x4a
github.com/cockroachdb/cockroach/pkg/sql/execinfra.(*ProcessorBaseNoHelper).Run(0xc0106fbb00, {0xa4eacd8, 0xc0249210e0}, {0xa4b1338, 0xc016a8a908})
	pkg/sql/execinfra/processorsbase.go:781 +0x136
github.com/cockroachdb/cockroach/pkg/sql/flowinfra.(*FlowBase).Run(0xc022339b88, {0xa4eacd8, 0xc0249210e0}, 0x0)
	pkg/sql/flowinfra/flow.go:593 +0x767
github.com/cockroachdb/cockroach/pkg/sql/colflow.(*vectorizedFlow).Run(0xc024921090, {0xa4eacd8, 0xc0249210e0}, 0x0)
	pkg/sql/colflow/vectorized_flow.go:302 +0x37b
github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).Run(0xc00121f8c0, {0xa4eacd8, 0xc0249210e0}, 0xc01c24fe10, 0xc0026975e0, 0xc001a29580, 0xc016a8a908, 0xc016eae2c8, 0xc020184fd8)
	pkg/sql/distsql_running.go:1091 +0x1c56
github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).PlanAndRun(0xc00121f8c0, {0xa4ec6c8, 0xc009c5ba40}, 0xc016eae2c8, 0xc01c24fe10, 0xc0026975e0, {{0xa531220, 0xc00154d7a0}, 0x0}, 0xc016a8a908, ...)
	pkg/sql/distsql_running.go:2408 +0x3b5
github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).PlanAndRunAll.func3(0xc016eadc88, 0xc00121f8c0, {0xa4ec6c8, 0xc009c5ba40}, 0xc016eae2c8, 0xc01c24fe10, 0xc016a8a908)
	pkg/sql/distsql_running.go:2107 +0x19d
github.com/cockroachdb/cockroach/pkg/sql.(*DistSQLPlanner).PlanAndRunAll(0xc00121f8c0, {0xa4ec6c8, 0xc009c5ba40}, 0xc016eae2c8, 0xc01c24fe10, 0xc016eadc88, 0xc016a8a908, 0x0)
	pkg/sql/distsql_running.go:2110 +0x358
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execWithDistSQLEngine(0xc016ead408, {0xa4ec6c8, 0xc009c5ba40}, 0xc016eadc88, 0x3, {0xa57e380, 0xc0249206e0}, 0x1, 0xc002b4a138, 0x0)
	pkg/sql/conn_executor_exec.go:3868 +0xa71
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).dispatchToExecutionEngine(0xc016ead408, {0xa4ec6c8, 0xc009c5ba40}, 0xc016eadc88, {0xa57e380, 0xc0249206e0})
	pkg/sql/conn_executor_exec.go:3247 +0x27e5
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execStmtInOpenState(0xc016ead408, {0xa4eacd8, 0xc024920690}, {{0xa517360, 0xc024920460}, {0x0, 0x0, 0x0}, {0xc0252ee620, 0x6c}, ...}, ...)
	pkg/sql/conn_executor_exec.go:1161 +0x6a76
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execStmt.func2({0xa4eacd8, 0xc024920690})
	pkg/sql/conn_executor_exec.go:185 +0x173
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execWithProfiling(0xc016ead408, {0xa4eacd8, 0xc024920690}, {0xa517360, 0xc024920460}, 0x0, 0xc020187480)
	pkg/sql/conn_executor_exec.go:4978 +0x977
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execStmt(0xc016ead408, {0xa4eacd8, 0xc024920690}, {{0xa517360, 0xc024920460}, {0x0, 0x0, 0x0}, {0xc0252ee620, 0x6c}, ...}, ...)
	pkg/sql/conn_executor_exec.go:184 +0xe67
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execCmd.func1(...)
	pkg/sql/conn_executor.go:2701
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execCmd(0xc016ead408)
	pkg/sql/conn_executor.go:2706 +0x41d4
github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).run(0xc016ead408, {0xa4ec6c8, 0xc009c5b860}, 0xc0014e94a0, 0xc014c26030, 0x0)
	pkg/sql/conn_executor.go:2572 +0x405
github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).runWithEx.func2()
	pkg/sql/internal.go:257 +0x276
created by github.com/cockroachdb/cockroach/pkg/sql.(*InternalExecutor).runWithEx in goroutine 9490
	pkg/sql/internal.go:254 +0x53f

Parameters:

  • attempt=1
  • race=true
  • run=3
  • shard=8
Help

See also: How To Investigate a Go Test Failure (internal)

Same failure on other branches

  • #175669 basalt-26.3.2-rc-20260914: sql/stats: TestCacheAutoRefresh failed [C-test-failure O-robot T-sql-queries branch-basalt-26.3.2-rc-20260914 release-blocker]
  • #175423 basalt-26.3: sql/stats: TestCacheAutoRefresh failed [C-test-failure O-robot T-sql-queries branch-basalt-26.3]
  • #175419 basalt-26.3.2-rc-20260913: sql/stats: TestCacheAutoRefresh failed [C-test-failure O-robot T-sql-queries branch-basalt-26.3.2-rc-20260913]
  • #174912 basalt-26.3.2-rc-20260908: sql/stats: TestCacheAutoRefresh failed [C-test-failure O-robot T-sql-queries branch-basalt-26.3.2-rc-20260908]

This test on roachdash | Improve this report!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing sql/stats.TestCacheAutoRefresh with race=true and reviewing the linked test report. Trace the failure through pkg/sql/colexec/materializer.go and the surrounding vectorized execution entry points shown in the stack trace. Done means the test passes reliably on the affected release branches and the failure is covered by an appropriate regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, sql
Domain
databases, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.