Skip to content

pkg/ccl/testccl/workload/schemachange/schemachange_test: TestWorkload failed [ALTER PK failed validation: expected 0 rows, found 4] #155053

@cockroach-teamcity

Description

@cockroach-teamcity

pkg/ccl/testccl/workload/schemachange/schemachange_test.TestWorkload failed with artifacts on master @ bb1c098ecc7058a2b24a23820c5a8e235dfa714c:

     true,
     true,
     true,
     true,
     true,
     true,
     true,
     false
    ]
   }
  ],
  "previousStatements": [
   "ALTER TABLE public.table_w0_141 ALTER PRIMARY KEY USING COLUMNS (col141_w0_147, col141_w0_149, col141_w0_152) USING HASH"
  ]
 }
}
    schema_change_external_test.go:165: 
        	Error Trace:	pkg/ccl/testccl/workload/schemachange/schema_change_external_test.go:165
        	Error:      	Received unexpected error:
        	            	***UNEXPECTED COMMIT ERROR; Received an unexpected commit error: ERROR: transaction committed but schema change aborted with error: (XX000): executing declarative schema change PostCommitPhase stage 7 of 16 with 3 ValidationType ops (rollback=false) for ALTER TABLE: validation of index crdb_internal_index_4_name_placeholder failed: expected 0 rows, found 4 (SQLSTATE XX000)
        	            	(1) forced error mark
        	            	  | "fatal error when running txn"
        	            	  | github.com/cockroachdb/errors/withstack/*withstack.withStack::
        	            	Wraps: (2)
        	            	Wraps: (3) attached stack trace
        	            	  -- stack trace:
        	            	  | github.com/cockroachdb/cockroach/pkg/workload/schemachange.(*schemaChangeWorker).run
        	            	  | 	pkg/workload/schemachange/schemachange.go:682
        	            	  | pkg/ccl/testccl/workload/schemachange/schemachange_test_test.TestWorkload.TestWorkload.func5.func7
        	            	  | 	pkg/ccl/testccl/workload/schemachange/schema_change_external_test.go:154
        	            	  | golang.org/x/sync/errgroup.(*Group).Go.func1
        	            	  | 	external/org_golang_x_sync/errgroup/errgroup.go:93
        	            	  | runtime.goexit
        	            	  | 	src/runtime/asm_arm64.s:1223
        	            	Wraps: (4) ***UNEXPECTED COMMIT ERROR; Received an unexpected commit error
        	            	Wraps: (5) ERROR: transaction committed but schema change aborted with error: (XX000): executing declarative schema change PostCommitPhase stage 7 of 16 with 3 ValidationType ops (rollback=false) for ALTER TABLE: validation of index crdb_internal_index_4_name_placeholder failed: expected 0 rows, found 4 (SQLSTATE XX000)
        	            	Error types: (1) *markers.withMark (2) *schemachange.ErrorState (3) *withstack.withStack (4) *errutil.withPrefix (5) *pgconn.PgError
        	Test:       	TestWorkload
Schema Workload Stats
Total Schema Statements Executed = 84
Total Schema Statements Succeeded = 84
Total Schema Statement Expected Failures = 0
Total Transactions Committed = 57
Total Transactions Rolled Back = 40
Total Transactions Executed = 97
    schema_change_external_test.go:118: backup, tracing data, and system table dumps in /artifacts/tmp/_tmp/67537770b84c3a4ea177539c1e46bd43/logTestWorkload4294111833
    schema_change_external_test.go:127: running DROP with use_declarative_schema_changer = on
    panic.go:635: -- test log scope end --
test logs left over in: /artifacts/tmp/_tmp/67537770b84c3a4ea177539c1e46bd43/logTestWorkload4294111833
--- FAIL: TestWorkload (63.14s)
Help

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

Same failure on other branches

/cc @cockroachdb/sql-foundations

This test on roachdash | Improve this report!

Jira issue: CRDB-55258

Metadata

Metadata

Assignees

Labels

C-test-failureBroken test (automatically or manually discovered).O-robotOriginated from a bot.P-2Issues/test failures with a fix SLA of 3 monthsT-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)branch-masterFailures and bugs on the master branch.branch-release-25.4Used to mark GA and release blockers and technical advisories for 25.4target-release-25.4.0target-release-26.1.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions