Repository navigation
Description
Can be reproduced ?
Yes
Steps:
- Insert more than 10 million rows of data, which about 1.1GB size of files in matrixone-main/cube0/aoe/data
- Stop DB service.
- Start DB service and get error information.
- Clean files under matrixone-main/cube0/aoe/data and matrixone-main/cube0/aoe/meta
- DB service can be started again.
Expected behavior:
Actual behavior:
Environment:
- Version or commit-id (e.g. v0.1.0 or 8b23a93): 7202d31
- Hardware parameters:
- OS type:
- Others:
Configuration file:
Additional context:
- Error message from client:
- Server log:
2021/08/25 15:35:37.350937 [info] [raftstore]: shard 11 peer 12 become leader now
panic: logic error
goroutine 294 [running]:
matrixone/pkg/vm/engine/aoe/storage/metadata/v1.(*Block).SetIndex(0xc00113ed90, 0xed4, 0x0, 0xa9f, 0xa9f)
/root/matrixone-main/pkg/vm/engine/aoe/storage/metadata/v1/block.go:73 +0x16c
matrixone/pkg/vm/engine/aoe/storage/memtable.(*MemTable).Append(0xc0029ed880, 0xc0029ed900, 0x0, 0xc001c306e0, 0xa9f, 0x0, 0x0)
/root/matrixone-main/pkg/vm/engine/aoe/storage/memtable/memtable.go:80 +0x1b4
matrixone/pkg/vm/engine/aoe/storage/memtable.(*Collection).Append(0xc002b6a0c0, 0xc0029ed900, 0xc001c306e0, 0x0, 0x0)
/root/matrixone-main/pkg/vm/engine/aoe/storage/memtable/collection.go:140 +0x1e4
matrixone/pkg/vm/engine/aoe/storage/db.(*DB).Append(0xc000186000, 0xed4, 0xc0006834b0, 0x10, 0xc0029ed900, 0x0, 0x0)
/root/matrixone-main/pkg/vm/engine/aoe/storage/db/db.go:102 +0x21f
matrixone/pkg/vm/engine/aoe/dist/aoe.(*Storage).Append(0xc002842810, 0xc0006834b0, 0x10, 0xc0029ed900, 0xc00295b2c0, 0x0, 0xd6c)
/root/matrixone-main/pkg/vm/engine/aoe/dist/aoe/storage.go:60 +0xba
matrixone/pkg/vm/engine/aoe/dist.(*driver).append(0xc002853ec0, 0xb, 0xc0008f0b50, 0xc, 0x10, 0xc0008f0b60, 0xc, 0x10, 0x3, 0x0, ...)
/root/matrixone-main/pkg/vm/engine/aoe/dist/handler_aoe.go:73 +0x252
github.com/matrixorigin/matrixcube/raftstore.(*applyDelegate).execWriteRequest(0xc0027a8780, 0xc0019c9440, 0xc, 0x10, 0xc0008f0b60)
/root/go/pkg/mod/github.com/matrixorigin/[email protected]/raftstore/peer_apply_exec.go:474 +0x244
github.com/matrixorigin/matrixcube/raftstore.(*applyDelegate).doApplyRaftCMD(0xc0027a8780, 0xc00050ca50)
/root/go/pkg/mod/github.com/matrixorigin/[email protected]/raftstore/peer_apply.go:528 +0xf88
github.com/matrixorigin/matrixcube/raftstore.(*applyDelegate).applyEntry(0xc0027a8780, 0xc00109e180, 0x5)
/root/go/pkg/mod/github.com/matrixorigin/[email protected]/raftstore/peer_apply.go:440 +0x67f
github.com/matrixorigin/matrixcube/raftstore.(*applyDelegate).applyCommittedEntries(0xc0027a8780, 0xc001cffb00, 0xf, 0xf)
/root/go/pkg/mod/github.com/matrixorigin/[email protected]/raftstore/peer_apply.go:408 +0x4cb
github.com/matrixorigin/matrixcube/raftstore.(*peerReplica).doApplyCommittedEntries(0xc000409400, 0xb, 0xf, 0xc001cffb00, 0xf, 0xf, 0x2a700, 0x0)
/root/go/pkg/mod/github.com/matrixorigin/[email protected]/raftstore/peer_apply.go:159 +0x208
github.com/matrixorigin/matrixcube/raftstore.(*peerReplica).startApplyCommittedEntriesJob.func1(0xc00050ca00, 0x40)
/root/go/pkg/mod/github.com/matrixorigin/[email protected]/raftstore/peer_job.go:40 +0x57
github.com/fagongzi/util/task.(*Runner).startWorker.func1(0x2950e98, 0xc002885300)
/root/go/pkg/mod/github.com/fagongzi/[email protected]/task/task.go:251 +0x157
github.com/fagongzi/util/task.(*Runner).RunCancelableTask.func1(0xc00283e7d0, 0xc002882510, 0x2950e98, 0xc002885300)
/root/go/pkg/mod/github.com/fagongzi/[email protected]/task/task.go:350 +0x8c
created by github.com/fagongzi/util/task.(*Runner).RunCancelableTask
/root/go/pkg/mod/github.com/fagongzi/[email protected]/task/task.go:345 +0x165
- Other information:
Activity
XuPeng-SH commentedon Aug 26, 2021
I can't reproduce it with the latest main branch. I think it may be fixed by #513. Could you check whether it is gone with the latest main branch?
ci: prepare capacity-aware CS Coverage routing for main and 4.2-dev (#…