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]: unmarshal schema constraint: panic: runtime error: makeslice: len out of range #21225

Open
1 task done
gouhongshen opened this issue Jan 14, 2025 · 1 comment
Open
1 task done
Assignees
Labels
kind/bug Something isn't working phase/testing

Comments

@gouhongshen
Copy link
Contributor

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

gouhongshen:opt_lock_and_logging_to_2.0

Commit ID

11b1edd

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

see https://github.com/matrixorigin/matrixone/actions/runs/12770146842/job/35594315539?pr=21224

panic: runtime error: makeslice: len out of range

goroutine 520 [running]:
github.com/matrixorigin/matrixone/pkg/vm/engine.(*ConstraintDef).UnmarshalBinary(0xc0114a49b0, {0xc01136a8e9, 0x306, 0x572f})
	/home/runner/work/matrixone/matrixone/head/pkg/vm/engine/types.go:414 +0x145
github.com/matrixorigin/matrixone/pkg/vm/engine/tae/db/merge.(*Scheduler).StopMerge(0xc04dcf5260, 0xc000eae6e0, 0x1)
	/home/runner/work/matrixone/matrixone/head/pkg/vm/engine/tae/db/merge/scheduler.go:178 +0x72
github.com/matrixorigin/matrixone/pkg/vm/engine/tae/rpc.(*Handle).tryLockMergeForBulkDelete(0xc04dcfa740, {0xc01a1ed4c0, 0x1, 0xd0?}, {0x599c328, 0xc01a1ed540})
	/home/runner/work/matrixone/matrixone/head/pkg/vm/engine/tae/rpc/handle.go:257 +0x372
github.com/matrixorigin/matrixone/pkg/vm/engine/tae/rpc.(*Handle).handleRequests(0xc04dcfa740, {0x58ada38, 0xc05ec9ef60}, {0x599c328, 0xc01a1ed540}, 0xc071b88300)
	/home/runner/work/matrixone/matrixone/head/pkg/vm/engine/tae/rpc/handle.go:288 +0x7c
github.com/matrixorigin/matrixone/pkg/vm/engine/tae/rpc.(*Handle).HandleCommit(_, {_, _}, {{0xc05da15120, 0x10, 0x10}, 0x0, {0x181a97b608da2176, 0x1, 0x0, ...}, ...})
	/home/runner/work/matrixone/matrixone/head/pkg/vm/engine/tae/rpc/handle.go:463 +0x35e
github.com/matrixorigin/matrixone/pkg/txn/storage/tae.(*taeStorage).Commit(_, {_, _}, {{0xc05da15120, 0x10, 0x10}, 0x0, {0x181a97b608da2176, 0x1, 0x0, ...}, ...})
	/home/runner/work/matrixone/matrixone/head/pkg/txn/storage/tae/storage.go:87 +0x75
github.com/matrixorigin/matrixone/pkg/txn/service.(*service).Commit(0xc0675d6c60, {0x58ada38, 0xc05ec9ef60}, 0xc0733c49c0, 0xc080a5d780)
	/home/runner/work/matrixone/matrixone/head/pkg/txn/service/service_cn_handler.go:264 +0x745
github.com/matrixorigin/matrixone/pkg/tnservice.(*store).handleCommit(0xc01026a9c0, {0x58ada38, 0xc05ec9ef60}, 0xc0733c49c0, 0xc080a5d780)
	/home/runner/work/matrixone/matrixone/head/pkg/tnservice/store_rpc_handler.go:124 +0x206
github.com/matrixorigin/matrixone/pkg/txn/rpc.executor.exec({{0xc1d9bd7598a2d4da, 0x46cdd8328a, 0x864de80}, {0x58ada38, 0xc05ec9ef60}, 0xc01a1ed410, 0xc0733c49c0, {0x58f5238, 0xc01be85800}, 0xc00f661900, ...})
	/home/runner/work/matrixone/matrixone/head/pkg/txn/rpc/server.go:294 +0xec
github.com/matrixorigin/matrixone/pkg/txn/rpc.(*server).handleTxnRequest(0xc00eeceb00, {0x58ada38, 0xc010694ab0})
	/home/runner/work/matrixone/matrixone/head/pkg/txn/rpc/server.go:269 +0x125
github.com/matrixorigin/matrixone/pkg/common/stopper.(*Stopper).doRunCancelableTask.func1()
	/home/runner/work/matrixone/matrixone/head/pkg/common/stopper/stopper.go:277 +0x5b
created by github.com/matrixorigin/matrixone/pkg/common/stopper.(*Stopper).doRunCancelableTask in goroutine 389
	/home/runner/work/matrixone/matrixone/head/pkg/common/stopper/stopper.go:272 +0xb0

Expected Behavior

No response

Steps to Reproduce

run ci

Additional information

No response

@gouhongshen gouhongshen added kind/bug Something isn't working needs-triage labels Jan 14, 2025
@XuPeng-SH XuPeng-SH changed the title [Bug]: tryLockMergeForBulkDelete: panic: runtime error: makeslice: len out of range [Bug]: unmarshal schema constraint: panic: runtime error: makeslice: len out of range Jan 15, 2025
@XuPeng-SH XuPeng-SH assigned aptend and unassigned matrix-meow Jan 15, 2025
@aptend
Copy link
Contributor

aptend commented Jan 22, 2025

fixed

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 phase/testing
Projects
None yet
Development

No branches or pull requests

4 participants