Skip to content

[Bug]: restore report 'panic'. #16638

Closed
Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

b076d9c

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

企业微信截图_c754c644-2593-479f-8978-c15cfd1945a6

log: 太大了,放不下,私发

Expected Behavior

restore successfully.

Steps to Reproduce

please contact me, i will give you a test document.

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s0
    on Jun 4, 2024
  2. added this to the 1.2.1 milestone on Jun 4, 2024
  3. Ariznawlll commented on Jun 4, 2024

    @Ariznawlll
    CollaboratorAuthor

    {"level":"INFO","time":"2024/06/04 17:31:10.372908 +0800","name":"log-service.frontend","caller":"frontend/snapshot.go:750","msg":"[sp100] start to insert select table: lineitem, insert sql: insert into tpch_10g.lineitem SELECT * FROM tpch_10g.lineitem {snapshot = 'sp100'}","uuid":"7c4dccb4-4d3c-41f8-b482-5251dc7a41bf"}
    {"level":"ERROR","time":"2024/06/04 17:37:39.324750 +0800","name":"log-service.frontend","caller":"frontend/util.go:503","msg":"query trace status","uuid":"7c4dccb4-4d3c-41f8-b482-5251dc7a41bf","statement":"insert into tpch_10g.lineitem select * from tpch_10g.lineitem{snapshot = sp100}","status":"fail","error":"internal error: panic too large fixed slice 33554432, max is 16777216: \ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*fixedSlicePool).acquire\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/slice.go:219\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*cowSlice).append\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/slice.go:65\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*activeTxn).lockAdded\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/txn.go:118\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).addRowLockLocked\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:449\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).acquireRowLockLocked\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:397\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).doAcquireLock\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:355\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).doLock\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:100\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).lock\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:87\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*service).Lock\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/service.go:180\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/lockop.doLock\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/lockop/lock_op.go:468\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/lockop.performLock\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/lockop/lock_op.go:226\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/lockop.callNonBlocking\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/lockop/lock_op.go:126\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/lockop.(*Argument).Call\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/lockop/lock_op.go:99\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/connector.(*Argument).Call\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/connector/connector.go:43\ngithub.com/matrixorigin/matrixone/pkg/vm.Run\n\t/Users/ariznawl/wl_123/matrixone/pkg/vm/vm.go:135\ngithub.com/matrixorigin/matrixone/pkg/vm/pipeline.(*Pipeline).Run\n\t/Users/ariznawl/wl_123/matrixone/pkg/vm/pipeline/pipeline.go:89\ngithub.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).Run\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/compile/scope.go:155\ngithub.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).MergeRun.func1\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/compile/scope.go:219\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1\n\t/Users/ariznawl/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker.go:67\nruntime.goexit\n\t/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/asm_arm64.s:1222","txn_id":"018fe29694997ca69ecd8324a854ce16","session_info":"connectionId 931||{account acc01:test_account:accountadmin -- 1:2:2}|goRoutineId 38473|018fe287-bccd-792b-bcb8-6eb350258f8b","background":true,"session_id":"018fe296-9498-7c9e-8f68-5d12e90ea451","txn_id":"018fe29694997ca69ecd8324a854ce16","span":{"trace_id":"9249592d-17ed-1e59-91f3-d23a7bdf0bcb","span_id":"d8a708833af8734d"}}
    {"level":"ERROR","time":"2024/06/04 17:38:13.118901 +0800","name":"log-service.frontend","caller":"frontend/util.go:503","msg":"query trace status","uuid":"7c4dccb4-4d3c-41f8-b482-5251dc7a41bf","statement":"restore account acc01 database tpch_10g table lineitem from snapshot sp100","status":"fail","error":"internal error: panic too large fixed slice 33554432, max is 16777216: \ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*fixedSlicePool).acquire\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/slice.go:219\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*cowSlice).append\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/slice.go:65\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*activeTxn).lockAdded\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/txn.go:118\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).addRowLockLocked\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:449\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).acquireRowLockLocked\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:397\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).doAcquireLock\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:355\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).doLock\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:100\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*localLockTable).lock\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/lock_table_local.go:87\ngithub.com/matrixorigin/matrixone/pkg/lockservice.(*service).Lock\n\t/Users/ariznawl/wl_123/matrixone/pkg/lockservice/service.go:180\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/lockop.doLock\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/lockop/lock_op.go:468\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/lockop.performLock\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/lockop/lock_op.go:226\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/lockop.callNonBlocking\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/lockop/lock_op.go:126\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/lockop.(*Argument).Call\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/lockop/lock_op.go:99\ngithub.com/matrixorigin/matrixone/pkg/sql/colexec/connector.(*Argument).Call\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/colexec/connector/connector.go:43\ngithub.com/matrixorigin/matrixone/pkg/vm.Run\n\t/Users/ariznawl/wl_123/matrixone/pkg/vm/vm.go:135\ngithub.com/matrixorigin/matrixone/pkg/vm/pipeline.(*Pipeline).Run\n\t/Users/ariznawl/wl_123/matrixone/pkg/vm/pipeline/pipeline.go:89\ngithub.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).Run\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/compile/scope.go:155\ngithub.com/matrixorigin/matrixone/pkg/sql/compile.(*Scope).MergeRun.func1\n\t/Users/ariznawl/wl_123/matrixone/pkg/sql/compile/scope.go:219\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1\n\t/Users/ariznawl/go/pkg/mod/github.com/panjf2000/ants/[email protected]/worker.go:67\nruntime.goexit\n\t/opt/homebrew/Cellar/go/1.22.0/libexec/src/runtime/asm_arm64.s:1222","txn_id":"018fe29694987bee878a9173b7e7433e","session_info":"connectionId 931||{account acc01:test_account:accountadmin -- 1:2:2}|goRoutineId 38473|018fe287-bccd-792b-bcb8-6eb350258f8b","session_id":"018fe287-bccd-792b-bcb8-6eb350258f8b","statement_id":"018fe296-9498-7b79-8551-1619e741ba4d","span":{"trace_id":"9249592d-17ed-1e59-91f3-d23a7bdf0bcb","span_id":"d8a708833af8734d"}}

  4. ouyuanning commented on Jun 4, 2024

    @ouyuanning
    Contributor

    之前应该处理过了。估计是stats有错,没有用表锁

  5. modified the milestones: 1.2.1, 1.3.0 on Jun 6, 2024
  6. jensenojs commented on Jun 18, 2024

    @jensenojs
    Contributor

    stats更新的问题在这个pr中有所解决, 可以再测一下

  7. 1 remaining item

  8. jensenojs commented on Jul 24, 2024

    @jensenojs
    Contributor

    等我把restore is too slow的问题解决了, 一并测

  9. Ariznawlll commented on Jul 26, 2024

    @Ariznawlll
    CollaboratorAuthor

    testing

  10. Ariznawlll commented on Aug 2, 2024

    @Ariznawlll
    CollaboratorAuthor

    testing

  11. Ariznawlll commented on Aug 7, 2024

    @Ariznawlll
    CollaboratorAuthor

    testing

  12. jensenojs commented on Aug 9, 2024

    @jensenojs
    Contributor

    在下面这个pr合并之后, 问题应该解决了, 辛苦QA同学验证一下.

    这个issue的校验和下面两个实际上是一个流程, 应该也都fix了, 验收完如果没有问题的话, 辛苦魏璐帮忙close一下啦

  13. Ariznawlll commented on Aug 19, 2024

    @Ariznawlll
    CollaboratorAuthor

    测试了恢复34G大小的数据,没有再出现,明天要再恢复一下70G大小的数据,看看结果

  14. Ariznawlll commented on Aug 22, 2024

    @Ariznawlll
    CollaboratorAuthor

    正在测试74G的恢复

  15. Ariznawlll commented on Aug 22, 2024

    @Ariznawlll
    CollaboratorAuthor

    main commit: 80509e6
    job url:https://github.com/matrixorigin/mo-nightly-regression/actions/runs/10505304794/job/29105911058

    74G恢复:
    系统租户恢复系统租户的数据;
    image

    系统租户恢复普通租户的数据到新租户;
    image

    普通租户恢复普通租户的数据
    image

    以上三点恢复成功,未发生panic
    系统租户恢复普通租户到普通租户恢复有bug issue:18237 跟踪

  16. Ariznawlll commented on Aug 23, 2024

    @Ariznawlll
    CollaboratorAuthor

    1.2-dev commit: ff8d9ac
    job url:https://github.com/matrixorigin/mo-nightly-regression/actions/runs/10518970679/job/29145596868

    74G恢复:
    系统租户恢复系统租户的数据;
    image

    系统租户恢复普通租户的数据到新租户;
    image

    普通租户恢复普通租户的数据
    image

    以上三点恢复成功,未发生panic
    系统租户恢复普通租户到普通租户恢复有bug issue: 18237 跟踪

  17. Ariznawlll commented on Aug 28, 2024

    @Ariznawlll
    CollaboratorAuthor

    还要再加点数据量测试一下

  18. jensenojs commented on Aug 28, 2024

    @jensenojs
    Contributor

    经验是, 在bug fix之前, 数据行数达到1y就可以稳定复现这个panic

  19. Ariznawlll commented on Aug 30, 2024

    @Ariznawlll
    CollaboratorAuthor

    main commit: c880770
    job url:https://github.com/matrixorigin/mo-nightly-regression/actions/runs/10626274378/job/29457558653

    约110G恢复:
    系统租户恢复系统租户的数据
    :
    image

    系统租户恢复普通租户的数据到新租户:
    image

    普通租户恢复普通租户的数据
    image

    系统租户恢复普通租户的数据到普通租户:
    image

    以上四点均恢复成功,未发生panic

  20. Ariznawlll commented on Aug 30, 2024

    @Ariznawlll
    CollaboratorAuthor

    1.2-dev commit: 3b003ad
    job url:https://github.com/matrixorigin/mo-nightly-regression/actions/runs/10627910181/job/29462569576

    约110G恢复:
    系统租户恢复系统租户的数据,耗时13min5s
    :
    image

    系统租户恢复普通租户的数据到新租户,耗时19min11s:
    image

    普通租户恢复普通租户的数据,耗时17min48s
    image

    系统租户恢复普通租户的数据到普通租户,耗时13min51s
    image

    以上四点均恢复成功,未发生panic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugphase/testingseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions