Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: insert will panic if it writes S3 #20457

Closed
1 task done
aunjgr opened this issue Nov 29, 2024 · 1 comment
Closed
1 task done

[Bug]: insert will panic if it writes S3 #20457

aunjgr opened this issue Nov 29, 2024 · 1 comment
Assignees
Labels
kind/bug Something isn't working severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Milestone

Comments

@aunjgr
Copy link
Contributor

aunjgr commented Nov 29, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

6386d14

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

MySQL [test]> create table insert_ignore_09(c1 int primary key, c2 int);
Query OK, 0 rows affected (0.010 sec)

MySQL [test]> insert into insert_ignore_09 values(20,45),(21,55),(1,45),(6,22),(5,1),(1000,222),(99999,19);
Query OK, 7 rows affected (0.006 sec)

MySQL [test]> insert ignore into insert_ignore_09 select result, result from generate_series(1,10000000) g;
ERROR 20101 (HY000): internal error: panic runtime error: index out of range [0] with length 0:
runtime.goPanicIndex
/usr/lib/go/src/runtime/panic.go:115
github.com/matrixorigin/matrixone/pkg/sql/colexec/multi_update.(*s3Writer).append
/home/aunjbr/codebase/work/matrixone/pkg/sql/colexec/multi_update/s3writer.go:159
github.com/matrixorigin/matrixone/pkg/sql/colexec/multi_update.(*MultiUpdate).update_s3
/home/aunjbr/codebase/work/matrixone/pkg/sql/colexec/multi_update/multi_update.go:178
github.com/matrixorigin/matrixone/pkg/sql/colexec/multi_update.(*MultiUpdate).Call
/home/aunjbr/codebase/work/matrixone/pkg/sql/colexec/multi_update/multi_update.go:144
github.com/matrixorigin/matrixone/pkg/vm.Exec
/home/aunjbr/codebase/work/matrixone/pkg/vm/types.go:505
github.com/matrixorigin/matrixone/pkg/vm.ChildrenCall
/home/aunjbr/codebase/work/matrixone/pkg/vm/types.go:516
github.com/matrixorigin/matrixone/pkg/sql/colexec/connector.(*Connector).Call
/home/aunjbr/codebase/work/matrixone/pkg/sql/colexec/connector/connector.go:47
github.com/matrixorigin/matrixone/pkg/vm.Exec
/home/aunjbr/codebase/work/matrixone/pkg/vm/types.go:505
github.com/matrixorigin/matrixone/pkg/vm/pipeline.(*Pipeline).Run
/home/aunjbr/codebase/work/matrixone/pkg/vm/pipeline/pipeline.go:71
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).Run
/home/aunjbr/codebase/work/matrixone/pkg/sql/compile/scope.go:172
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).ParallelRun
/home/aunjbr/codebase/work/matrixone/pkg/sql/compile/scope.go:491
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).MergeRun
/home/aunjbr/codebase/work/matrixone/pkg/sql/compile/scope.go:348
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).RemoteRun
/home/aunjbr/codebase/work/matrixone/pkg/sql/compile/scope.go:400
github.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).MergeRun.func1
/home/aunjbr/codebase/work/matrixone/pkg/sql/compile/scope.go:303
github.com/panjf2000/ants/v2.(*goWorker).run.func1
/home/aunjbr/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker.go:71
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1700

Expected Behavior

No response

Steps to Reproduce

as above

Additional information

No response

@aunjgr aunjgr added kind/bug Something isn't working needs-triage severity/s0 Extreme impact: Cause the application to break down and seriously affect the use labels Nov 29, 2024
@aunjgr aunjgr added this to the 2.0.1 milestone Nov 29, 2024
@ouyuanning ouyuanning assigned aunjgr and unassigned ouyuanning Nov 29, 2024
@ouyuanning
Copy link
Contributor

多CN可复现。可能原因是多CN时,Result属性没有传到远程节点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Projects
None yet
Development

No branches or pull requests

3 participants