cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
30.21k stars 3.82k forks source link

sql: v24.2.4: COPY didn't insert all buffered rows and yet no error was reported. Inserted 1 out of 64 rows #136462

Open cockroach-sentry opened 1 day ago

cockroach-sentry commented 1 day ago

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

Panic Message:

copy_from.go:1262: COPY didn't insert all buffered rows and yet no error was reported. Inserted 1 out of 64 rows.
(1) assertion failure
Wraps: (2) attached stack trace
  -- stack trace:
  | github.com/cockroachdb/cockroach/pkg/sql.(*copyMachine).insertRowsInternal
  |     github.com/cockroachdb/cockroach/pkg/sql/copy_from.go:1262
  | github.com/cockroachdb/cockroach/pkg/sql.(*copyMachine).insertRows
  |     github.com/cockroachdb/cockroach/pkg/sql/copy_from.go:1146
  | github.com/cockroachdb/cockroach/pkg/sql.(*copyMachine).processCopyData
  |     github.com/cockroachdb/cockroach/pkg/sql/copy_from.go:717
  | github.com/cockroachdb/cockroach/pkg/sql.(*copyMachine).run
  |     github.com/cockroachdb/cockroach/pkg/sql/copy_from.go:627
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execCopyIn.func9
  |     github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:3316
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execWithProfiling
  |     github.com/cockroachdb/cockroach/pkg/sql/conn_executor_exec.go:3436
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execCopyIn
  |     github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:3303
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).execCmd
  |     github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:2497
  | github.com/cockroachdb/cockroach/pkg/sql.(*connExecutor).run
  |     github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:2238
  | github.com/cockroachdb/cockroach/pkg/sql.(*Server).ServeConn
  |     github.com/cockroachdb/cockroach/pkg/sql/conn_executor.go:963
  | github.com/cockroachdb/cockroach/pkg/sql/pgwire.(*conn).processCommands
  |     github.com/cockroachdb/cockroach/pkg/sql/pgwire/conn.go:256
  | github.com/cockroachdb/cockroach/pkg/sql/pgwire.(*Server).serveImpl.func4
  |     github.com/cockroachdb/cockroach/pkg/sql/pgwire/server.go:1136
  | runtime.goexit
  |     src/runtime/asm_amd64.s:1695
Wraps: (3) COPY didn't insert all buffered rows and yet no error was reported. Inserted 1 out of 64 rows.
Error types: (1) *assert.withAssertionFailure (2) *withstack.withStack (3) *errutil.leafError
-- report composition:
*errutil.leafError: COPY didn't insert all buffered rows and yet no error was reported. Inserted 1 out of 64 rows.
copy_from.go:1262: *withstack.withStack (top exception)
*assert.withAssertionFailure
Stacktrace (expand for inline code snippets): [src/runtime/asm_amd64.s#L1694-L1696](src/runtime/asm_amd64.s#L1694-L1696) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/pgwire/server.go#L1135-L1137](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/pgwire/server.go#L1135-L1137) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/pgwire/conn.go#L255-L257](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/pgwire/conn.go#L255-L257) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L962-L964](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L962-L964) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L2237-L2239](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L2237-L2239) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L2496-L2498](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L2496-L2498) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L3302-L3304](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L3302-L3304) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor_exec.go#L3435-L3437](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor_exec.go#L3435-L3437) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L3315-L3317](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/conn_executor.go#L3315-L3317) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/copy_from.go#L626-L628](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/copy_from.go#L626-L628) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/copy_from.go#L716-L718](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/copy_from.go#L716-L718) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/copy_from.go#L1145-L1147](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/copy_from.go#L1145-L1147) [https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/copy_from.go#L1261-L1263](https://github.com/cockroachdb/cockroach/blob/8140b8e294fb16a293d0aae662bcf5c1d488c852/pkg/sql/copy_from.go#L1261-L1263)
src/runtime/asm_amd64.s in runtime.goexit at line 1695
pkg/sql/pgwire/server.go in pkg/sql/pgwire.(*Server).serveImpl.func4 at line 1136
pkg/sql/pgwire/conn.go in pkg/sql/pgwire.(*conn).processCommands at line 256
pkg/sql/conn_executor.go in pkg/sql.(*Server).ServeConn at line 963
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).run at line 2238
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).execCmd at line 2497
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).execCopyIn at line 3303
pkg/sql/conn_executor_exec.go in pkg/sql.(*connExecutor).execWithProfiling at line 3436
pkg/sql/conn_executor.go in pkg/sql.(*connExecutor).execCopyIn.func9 at line 3316
pkg/sql/copy_from.go in pkg/sql.(*copyMachine).run at line 627
pkg/sql/copy_from.go in pkg/sql.(*copyMachine).processCopyData at line 717
pkg/sql/copy_from.go in pkg/sql.(*copyMachine).insertRows at line 1146
pkg/sql/copy_from.go in pkg/sql.(*copyMachine).insertRowsInternal at line 1262

Tags

Tag Value
Command mt start-sql
Environment v24.2.4
Go Version go1.22.5 X:nocoverageredesign
Platform linux amd64
Distribution CCL
Cockroach Release v24.2.4
Cockroach SHA 8140b8e294fb16a293d0aae662bcf5c1d488c852
# of CPUs 32
# of Goroutines 362

Jira issue: CRDB-45081

blathers-crl[bot] commented 1 day ago

CC'ing via the CODEOWNERS-based sentry heuristic:

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.