matrixorigin / matrixone

Hyperconverged cloud-edge native database
https://docs.matrixorigin.cn/en
Apache License 2.0
1.79k stars 277 forks source link

[Bug]: `internal error: panic delete table failed 16, 32: ` #18985

Closed daviszhen closed 3 weeks ago

daviszhen commented 1 month ago

Is there an existing issue for the same bug?

Branch Name

daviszhen:0924-fix-dashboard

Commit ID

lastest

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior


[ERROR]
[SCRIPT   FILE]: /home/runner/work/matrixone/matrixone/test/distributed/cases/snapshot/snapshot_restore_to_table_fk.sql
[ROW    NUMBER]: 354
[SQL STATEMENT]: restore account sys from snapshot snapshot_01;
[EXPECT RESULT]:
null
[ACTUAL RESULT]:
internal error: panic delete table failed 16, 32: 
github.com/matrixorigin/matrixone/pkg/vm/engine/disttae.(*txnDatabase).deleteTable
    /go/src/github.com/matrixorigin/matrixone/pkg/vm/engine/disttae/txn_database.go:257
github.com/matrixorigin/matrixone/pkg/vm/engine/disttae.(*txnDatabase).Delete
    /go/src/github.com/matrixorigin/matrixone/pkg/vm/engine/disttae/txn_database.go:174
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).DropTable
    /go/src/github.com/matrixorigin/matrixone/pkg/sql/compile/ddl.go:2254
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Compile).run
    /go/src/github.com/matrixorigin/matrixone/pkg/sql/compile/compile.go:362
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Compile).runOnce.func2
    /go/src/github.com/matrixorigin/matrixone/pkg/sql/compile/compile.go:467
github.com/panjf2000/ants/v2.(*goWorker).run.func1
    /go/pkg/mod/github.com/panjf2000/ants/v2@v2.7.4/worker.go:67
runtime.goexit
    /usr/local/go/src/runtime/asm_amd64.s:1700

Expected Behavior

no panic

Steps to Reproduce

https://github.com/matrixorigin/matrixone/actions/runs/11012318674/job/30578266051?pr=18973

Additional information

No response

daviszhen commented 1 month ago

Compose-multi-cn-e2e-bvt-test-docker-log(Optimistic,PUSH).zip

aptend commented 3 weeks ago

no repro yet

XuPeng-SH commented 3 weeks ago

should be fixed by #19644