cockroachdb / cockroachdb/cockroach
Sentry: restore_planning.go:623: function descriptor seen when restoring tables (1) Wraps: (2) assertion failure Wraps: (3) attached stack trace -- stack trace: | github.com/cockroachdb/cockroach/...
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
This issue was auto filed by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.
Sentry Link: [https://cockroach-labs.sentry.io/issues/7223468626/?referrer=webhooks_plugin](https://cockroach-labs.sentry.io/issues/7223468626/?referrer=webhooks_plugin)
Panic Message:
```
restore_planning.go:623: function descriptor seen when restoring tables
(1)
Wraps: (2) assertion failure
Wraps: (3) attached stack trace
-- stack trace:
| github.com/cockroachdb/cockroach/pkg/ccl/backupccl.remapFunctions
| pkg/ccl/backupccl/restore_planning.go:623
| github.com/cockroachdb/cockroach/pkg/ccl/backupccl.allocateDescriptorRewrites
| pkg/ccl/backupccl/restore_planning.go:858
| github.com/cockroachdb/cockroach/pkg/ccl/backupccl.doRestorePlan
| pkg/ccl/backupccl/restore_planning.go:2024
| github.com/cockroachdb/cockroach/pkg/ccl/backupccl.restorePlanHook.func3
| pkg/ccl/backupccl/restore_planning.go:1430
| github.com/cockroachdb/cockroach/pkg/sql.(*hookFnNode).startExec.func1
| pkg/sql/planhook.go:194
| github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2
| pkg/util/stop/stopper.go:498
| runtime.goexit
| src/runtime/asm_arm64.s:1222
Wraps: (4) function descriptor seen when restoring tables
Error types: (1) *colexecerror.notInternalError (2) *assert.withAssertionFailure (3) *withstack.withStack (4) *errutil.leafError
-- report composition:
*errutil.leafError: function descriptor seen when restoring tables
restore_planning.go:623: *withstack.withStack (top exception)
*assert.withAssertionFailure
*colexecerror.notInternalError
```
Stacktrace (expand for inline code snippets):
[src/runtime/asm_arm64.s#L1221-L1223](src/runtime/asm_arm64.s#L1221-L1223)
[pkg/util/stop/stopper.go#L497-L499](pkg/util/stop/stopper.go#L497-L499)
[pkg/sql/planhook.go#L193-L195](pkg/sql/planhook.go#L193-L195)
[pkg/ccl/backupccl/restore_planning.go#L1429-L1431](pkg/ccl/backupccl/restore_planning.go#L1429-L1431)
[pkg/ccl/backupccl/restore_planning.go#L2023-L2025](pkg/ccl/backupccl/restore_planning.go#L2023-L2025)
[pkg/ccl/backupccl/restore_planning.go#L857-L859](pkg/ccl/backupccl/restore_planning.go#L857-L859)
[pkg/ccl/backupccl/restore_planning.go#L622-L624](pkg/ccl/backupccl/restore_planning.go#L622-L624)
```
src/runtime/asm_arm64.s in runtime.goexit at line 1222
pkg/util/stop/stopper.go in pkg/util/stop.(*Stopper).RunAsyncTaskEx.func2 at line 498
pkg/sql/planhook.go in pkg/sql.(*hookFnNode).startExec.func1 at line 194
pkg/ccl/backupccl/restore_planning.go in pkg/ccl/backupccl.restorePlanHook.func3 at line 1430
pkg/ccl/backupccl/restore_planning.go in pkg/ccl/backupccl.doRestorePlan at line 2024
pkg/ccl/backupccl/restore_planning.go in pkg/ccl/backupccl.allocateDescriptorRewrites at line 858
pkg/ccl/backupccl/restore_planning.go in pkg/ccl/backupccl.remapFunctions at line 623
```
### Tags
| Tag | Value |
| --- | --- |
| Command | server |
| Environment | v24.3.25 |
| Go Version | go1.22.12 X:nocoverageredesign |
| Platform | linux arm64 |
| Distribution | CCL |
| Cockroach Release | v24.3.25 |
| Cockroach SHA | eecd7c2c316ed213daab1c664e0d854fc937a746 |
| # of CPUs | 16 |
| # of Goroutines | 659 |
Jira issue: CRDB-59152
Contributor guide
Assessment
This issue has not been assessed yet.