You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
*errors.errorString
*safedetails.withSafeDetails: estimated row count must be non-zero (1)
statistics_builder.go:2353: *withstack.withStack (2)
*assert.withAssertionFailure
(check the extra data payloads)
in pkg/sql/pgwire.(*conn).processCommandsAsync.func1
/usr/local/go/src/runtime/asm_amd64.s#L1356-L1358 in runtime.goexit
pkg/sql/opt/memo/statistics_builder.go in pkg/sql/opt/memo.(*statisticsBuilder).finalizeFromCardinality at line 2353
pkg/sql/opt/memo/statistics_builder.go in pkg/sql/opt/memo.(*statisticsBuilder).buildSelect at line 763
pkg/sql/opt/memo/logical_props_builder.go in pkg/sql/opt/memo.(*logicalPropsBuilder).buildSelectProps at line 246
pkg/sql/opt/memo/expr.og.go in pkg/sql/opt/memo.(*Memo).MemoizeSelect at line 15693
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).ConstructSelect at line 1037
pkg/sql/opt/norm/factory.og.go in pkg/sql/opt/norm.(*Factory).ConstructSelect at line 386
pkg/sql/opt/optbuilder/select.go in pkg/sql/opt/optbuilder.(*Builder).buildWhere at line 1048
pkg/sql/opt/optbuilder/mutation_builder.go in pkg/sql/opt/optbuilder.(*mutationBuilder).buildInputForUpdate at line 266
pkg/sql/opt/optbuilder/update.go in pkg/sql/opt/optbuilder.(*Builder).buildUpdate at line 98
pkg/sql/opt/optbuilder/builder.go in pkg/sql/opt/optbuilder.(*Builder).buildStmt.func3 at line 270
pkg/sql/opt/optbuilder/with.go in pkg/sql/opt/optbuilder.(*Builder).processWiths at line 29
pkg/sql/opt/optbuilder/builder.go in pkg/sql/opt/optbuilder.(*Builder).buildStmt at line 269
pkg/sql/opt/optbuilder/builder.go in pkg/sql/opt/optbuilder.(*Builder).buildStmtAtRoot at line 217
pkg/sql/opt/optbuilder/builder.go in pkg/sql/opt/optbuilder.(*Builder).Build at line 188
pkg/sql/plan_opt.go in pkg/sql.(*optPlanningCtx).buildReusableMemo at line 312
pkg/sql/plan_opt.go in pkg/sql.(*planner).prepareUsingOptimizer at line 117
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).populatePrepared at line 238
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).prepare.func1 at line 180
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).prepare at line 186
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).addPreparedStmt at line 106
pkg/sql/conn_executor_prepare.go in pkg/sql.(*connExecutor).execPrepare at line 52
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).execCmd at line 1469
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).run at line 1335
pkg/sql/conn_executor.go in pkg/sql.(*Server).ServeConn at line 479
pkg/sql/pgwire/conn.go in pkg/sql/pgwire.(*conn).processCommandsAsync.func1 at line 582
/usr/local/go/src/runtime/asm_amd64.s in runtime.goexit at line 1357
The text was updated successfully, but these errors were encountered:
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
Mar 1, 2021
This is odd... the statement in the sentry issue is BEGIN TRANSACTION
yuzefovich
changed the title
sentry: *errors.errorString
*safedetails.withSafeDetails: estimated row count must be non-zero (1)
statistics_builder.go:2353: *withstack.withStack (2)
*assert.withAssertionFailure
(check the extra data payloads)
opt: v20.1.12: estimated row count must be non-zero
Mar 2, 2021
Yea, I think that's a good theory. And it's consistent with the fact that this error occurred inside buildSelect. I don't see how we can debug this further, so I'm going to close the issue.
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.
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/2245205023/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/sql/opt/memo/statistics_builder.go
Lines 2352 to 2354 in 8710560
cockroach/pkg/sql/opt/memo/statistics_builder.go
Lines 762 to 764 in 8710560
cockroach/pkg/sql/opt/memo/logical_props_builder.go
Lines 245 to 247 in 8710560
https://github.com/cockroachdb/cockroach/blob/871056016d8a32ff20921b716f103e0e3abdd6e2/pkg/sql/opt/memo/expr.og.go#L15692-L15694 in pkg/sql/opt/memo.(*Memo).MemoizeSelect
https://github.com/cockroachdb/cockroach/blob/871056016d8a32ff20921b716f103e0e3abdd6e2/pkg/sql/opt/norm/factory.og.go#L1036-L1038 in pkg/sql/opt/norm.(*Factory).ConstructSelect
https://github.com/cockroachdb/cockroach/blob/871056016d8a32ff20921b716f103e0e3abdd6e2/pkg/sql/opt/norm/factory.og.go#L385-L387 in pkg/sql/opt/norm.(*Factory).ConstructSelect
cockroach/pkg/sql/opt/optbuilder/select.go
Lines 1047 to 1049 in 8710560
cockroach/pkg/sql/opt/optbuilder/mutation_builder.go
Lines 265 to 267 in 8710560
cockroach/pkg/sql/opt/optbuilder/update.go
Lines 97 to 99 in 8710560
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 269 to 271 in 8710560
cockroach/pkg/sql/opt/optbuilder/with.go
Lines 28 to 30 in 8710560
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 268 to 270 in 8710560
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 216 to 218 in 8710560
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 187 to 189 in 8710560
cockroach/pkg/sql/plan_opt.go
Lines 311 to 313 in 8710560
cockroach/pkg/sql/plan_opt.go
Lines 116 to 118 in 8710560
cockroach/pkg/sql/conn_executor_prepare.go
Lines 237 to 239 in 8710560
cockroach/pkg/sql/conn_executor_prepare.go
Lines 179 to 181 in 8710560
cockroach/pkg/sql/conn_executor_prepare.go
Lines 185 to 187 in 8710560
cockroach/pkg/sql/conn_executor_prepare.go
Lines 105 to 107 in 8710560
cockroach/pkg/sql/conn_executor_prepare.go
Lines 51 to 53 in 8710560
cockroach/pkg/sql/conn_executor.go
Lines 1468 to 1470 in 8710560
cockroach/pkg/sql/conn_executor.go
Lines 1334 to 1336 in 8710560
cockroach/pkg/sql/conn_executor.go
Lines 478 to 480 in 8710560
cockroach/pkg/sql/pgwire/conn.go
Lines 581 to 583 in 8710560
/usr/local/go/src/runtime/asm_amd64.s#L1356-L1358 in runtime.goexit
v20.1.12
go1.13.9
The text was updated successfully, but these errors were encountered: