matrixorigin / matrixone

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

[Bug]: bvt panic #16713

Closed daviszhen closed 1 month ago

daviszhen commented 5 months ago

Is there an existing issue for the same bug?

Branch Name

daviszhen:0604-debug-txn-panic

Commit ID

lastest

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

24/06/05 13:52:20.653108 +0000 INFO plan/result_scan.go:74 buildResultScan : get save query result path is SHARED:/query_result/sys_018fe8ac-0ca4-7730-9099-535e79f6d025_1.blk, uuid is 018fe8ac-0ca4-7730-9099-535e79f6d025
2024/06/05 13:52:20.653430 +0000 ERROR fileservice/get.go:36 error: service SHARED not found
2024/06/05 13:52:20.655576 +0000 INFO cn-service.frontend frontend/query_result.go:116 open save query result {"uuid": "dd1dccb1-4d3c-41f8-b482-5251dc7a41bf", "statemant id is:": "018fe8ac-0caf-70e7-9fee-ff7132cb5257", "fileservice name is:": "", "write path is:": "SHARED:/query_result/sys_018fe8ac-0caf-70e7-9fee-ff7132cb5257_1.blk", "current result size:": 0.00000762939453125, "session_info": "connectionId 3||{account sys:dump:moadmin -- 0:1:0}|goRoutineId 403|018fe8a3-bcdc-740c-9c70-bee8da1b92b4", "session_id": "018fe8a3-bcdc-740c-9c70-bee8da1b92b4", "statement_id": "018fe8ac-0caf-70e7-9fee-ff7132cb5257", "txn_id": "018fe8ac0caf716e9938d8571c2a6959", "span": {"trace_id": "bade7a7e-5f2a-bd49-7a8c-ee95ff1102b6", "span_id": "ae0ca0fca7f527bf"}}
2024/06/05 13:52:20.658088 +0000 INFO plan/result_scan.go:39 buildResultScan : save query result: 1
2024/06/05 13:52:20.658345 +0000 INFO plan/result_scan.go:74 buildResultScan : get save query result path is SHARED:/query_result/sys_018fe8ac-0caf-70e7-9fee-ff7132cb5257_1.blk, uuid is 018fe8ac-0caf-70e7-9fee-ff7132cb5257
2024/06/05 13:52:20.658673 +0000 ERROR fileservice/get.go:36 error: service SHARED not found
2024/06/05 13:52:20.660343 +0000 ERROR compile/scope.go:125 error: internal error: panic runtime error: invalid memory address or nil pointer dereference: 
runtime.panicmem
        /opt/hostedtoolcache/go/1.22.3/x64/src/runtime/panic.go:261
runtime.sigpanic
        /opt/hostedtoolcache/go/1.22.3/x64/src/runtime/signal_unix.go:881
github.com/matrixorigin/matrixone/pkg/sql/colexec/table_scan.(*Argument).Prepare
        /home/runner/work/matrixone/matrixone/head/pkg/sql/colexec/table_scan/table_scan.go:38
github.com/matrixorigin/matrixone/pkg/vm.Prepare
        /home/runner/work/matrixone/matrixone/head/pkg/vm/vm.go:46
github.com/matrixorigin/matrixone/pkg/vm/pipeline.(*Pipeline).Run
        /home/runner/work/matrixone/matrixone/head/pkg/vm/pipeline/pipeline.go:85
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).Run
        /home/runner/work/matrixone/matrixone/head/pkg/sql/compile/scope.go:155
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).MergeRun.func1
        /home/runner/work/matrixone/matrixone/head/pkg/sql/compile/scope.go:219
github.com/panjf2000/ants/v2.(*goWorker).run.func1
        /home/runner/go/pkg/mod/github.com/panjf2000/ants/v2@v2.7.4/worker.go:67
runtime.goexit
        /opt/hostedtoolcache/go/1.22.3/x64/src/runtime/asm_amd64.s:1695 {"span": {"trace_id": "bade7a7e-5f2a-bd49-7a8c-ee95ff1102b6", "span_id": "ae0ca0fca7f527bf", "kind": "remote"}}
2024/06/05 13:52:20.660383 +0000 ERROR cn-service.txn compile/scope.go:126 panic in scope run {"uuid": "dd1dccb0-4d3c-41f8-b482-5251dc7a41bf", "sql": "", "error": "internal error: panic runtime error: invalid memory address or nil pointer dereference: \nruntime.panicmem\n\t/opt/hostedtoolcache/go/1.22.3/x64/src/runtime/panic.go:261\nruntime.sigpanic\n\t/opt/hostedtoolcache/go/1.22.3/x64/src/runtime/signal_unix.go:881\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/table_scan.(*Argument).Prepare\n\t/home/runner/work/matrixone/matrixone/head/pkg/sql/colexec/table_scan/table_scan.go:38\ngithub.com/matrixorigin/matrixone/pkg/vm.Prepare\n\t/home/runner/work/matrixone/matrixone/head/pkg/vm/vm.go:46\ngithub.com/matrixorigin/matrixone/pkg/vm/pipeline.(*Pipeline).Run\n\t/home/runner/work/matrixone/matrixone/head/pkg/vm/pipeline/pipeline.go:85\ngithub.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).Run\n\t/home/runner/work/matrixone/matrixone/head/pkg/sql/compile/scope.go:155\ngithub.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).MergeRun.func1\n\t/home/runner/work/matrixone/matrixone/head/pkg/sql/compile/scope.go:219\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1\n\t/home/runner/go/pkg/mod/github.com/panjf2000/ants/v2@v2.7.4/worker.go:67\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.22.3/x64/src/runtime/asm_amd64.s:1695", "session_id": "018fe8a3-bcdc-740c-9c70-bee8da1b92b4", "statement_id": "018fe8ac-0cb2-7060-bc83-946315b492fa", "txn_id": "018fe8ac0cb270bbb5483ca4a4ff5c78", "span": {"trace_id": "bade7a7e-5f2a-bd49-7a8c-ee95ff1102b6", "span_id": "ae0ca0fca7f527bf", "kind": "remote"}}                            
2024/06/05 13:52:20.660469 +0000 WARN cn-service.morpc morpc/backend.go:466 system is busy, write loop schedule interval is too large {"uuid": "dd1dccb0-4d3c-41f8-b482-5251dc7a41bf", "interval": "5.047484197s", "last-ping-trigger-time": "2024/06/05 13:52:15.612895 +0000", "ping-interval": "24s"}
2024/06/05 13:52:20.969916 +0000 INFO blockio/pipeline.go:496 SelectivityStats: BLK[0/0=0.0000] COL[3194/6583=0.4852] RDF[113/266=0.4248,8170/22845=0.3576]RDD[824.669µs/699.588µs/82.001µs/61]
2024/06/05 13:52:20.983358 +0000 INFO blockio/pipeline.go:496 SelectivityStats: BLK[0/0=0.0000] COL[485/1654=0.2932] RDF[50/53=0.9434,95/212=0.4481]RDD[0s/0s/0s/0]

Expected Behavior

no panic

Steps to Reproduce

https://github.com/matrixorigin/matrixone/actions/runs/9385209892/job/25842799789

Additional information

No response

daviszhen commented 5 months ago

日志很大

YANGGMM commented 5 months ago

@ouyuanning 麻烦看一下

sukki37 commented 1 month ago

This issue has been inactive for a while, so we're going to close it for now. If you feel that this issue is still relevant, or you have additional information to provide, please feel free to reopen it or create a new issue.