Skip to content

[Bug]: mo panic by internal error: driver info: retry time out during stability test on standlone mode #9883

Closed

Description

@aressu1985

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):5e19c1a79941d731647076709e50abc1556ab2f9
- Hardware parameters: 16C 64G
- OS type:
- Others:

Actual Behavior

the error log:
2023/06/06 18:08:47.337399 +0800 INFO catalog/database.go:477 [Catalog] {"operation": "remove", "operand": "TBL[282455][name=mo_stored_procedure][C@1686039836577783214-0,D@1686039836903454219-0]"}
2023/06/06 18:08:47.297326 +0800 WARN logservicedriver/appender.go:100 append to logservice took 6m38.034800002s
panic: internal error: driver info: retry time out

goroutine 58928427 [running]:
github.com/matrixorigin/matrixone/pkg/vm/engine/tae/logstore/driver/logservicedriver.(*driverAppender).append(0xc02e57bd00, 0x1?, 0x2540be400)
/mnt/datadisk0/actions-runner/_work/mo-nightly-regression/mo-nightly-regression/matrixone/pkg/vm/engine/tae/logstore/driver/logservicedriver/appender.go:78 +0x677
created by github.com/matrixorigin/matrixone/pkg/vm/engine/tae/logstore/driver/logservicedriver.(*LogServiceDriver).onAppendQueue
/mnt/datadisk0/actions-runner/_work/mo-nightly-regression/mo-nightly-regression/matrixone/pkg/vm/engine/tae/logstore/driver/logservicedriver/append.go:66 +0xf4

mo-service.tar.gz

Expected Behavior

mo should be never crash

Steps to Reproduce

1. run a mo server on standlone mode 
2. run bvt test loop
3. run tpch_10 test loop
4. run sysbench mixed test 
5. run tpcc 10 warehouse 10 terminal

Additional information

No response

Activity

  1. added this to the V0.8.0 milestone on Jun 6, 2023
  2. volgariver6 commented on Jun 6, 2023

    @volgariver6
    Contributor

    I will take this one.

  3. volgariver6 commented on Jun 7, 2023

    @volgariver6
    Contributor

    对日志进做了过滤,把不相关的信息全部删掉。上传一下过滤后的日志文件:
    issue.log

  4. volgariver6 commented on Jun 7, 2023

    @volgariver6
    Contributor

    问题分析

    该问题是由dn向logservice写数据超时导致的panic,从日志来看,在panic之前就开始写入数据变慢:

    2023/06/06 18:00:56.217488 +0800 WARN logservicedriver/appender.go:100 append to logservice took 1m32.260443588s
    2023/06/06 18:00:56.216781 +0800 WARN logservicedriver/appender.go:100 append to logservice took 1m32.540563717s
    2023/06/06 18:00:56.217630 +0800 WARN logservicedriver/appender.go:100 append to logservice took 1m32.119670334s
    2023/06/06 18:00:56.135985 +0800 WARN logservicedriver/appender.go:100 append to logservice took 2.466380988s
    2023/06/06 18:00:56.217258 +0800 WARN logservicedriver/appender.go:100 append to logservice took 1m32.278655261s
    

    最后一次写数据超过6分钟没有完成,就panic了。

    2023/06/06 18:08:47.297326 +0800 WARN logservicedriver/appender.go:100 append to logservice took 6m38.034800002s
    

    原因

    应该是系统负载非常高,导致没有办法及时完成数据写入操作。

    @aressu1985 麻烦打开profile再做一次测试,看一下cpu使用情况。

  5. aressu1985 commented on Jun 7, 2023

    @aressu1985
    ContributorAuthor

    @volgariver6
    the profile of this time
    profile.tar.gz

  6. volgariver6 commented on Jun 8, 2023

    @volgariver6
    Contributor

    等 @aressu1985 再跑一次拿到profile

  7. volgariver6 commented on Jun 9, 2023

    @volgariver6
    Contributor

    还没有跑出来

  8. volgariver6 commented on Jun 12, 2023

    @volgariver6
    Contributor

    加了一条日志,下次再出现时看看是否是因为包过大导致的。

  9. 17 remaining items

  10. volgariver6 commented on Jun 30, 2023

    @volgariver6
    Contributor

    no progress

  11. volgariver6 commented on Jul 3, 2023

    @volgariver6
    Contributor

    目前分析得到的结果是,在standalone模式下做压力稳定性测试,由于是共享的磁盘,所以logservice会收到其他模块IO的影响出现写数据延迟高的问题。

    建议在做standalone性能方面的测试时,将fileservice和logservice的磁盘分开。

    @aressu1985

  12. fengttt commented on Jul 3, 2023

    @fengttt
    Contributor

    目前分析得到的结果是,在standalone模式下做压力稳定性测试,由于是共享的磁盘,所以logservice会收到其他模块IO的影响出现写数据延迟高的问题。

    建议在做standalone性能方面的测试时,将fileservice和logservice的磁盘分开。

    @aressu1985

    Had a lengthy discussion with YueSheng. So far I believe it is bad I/O pattern.

    "将fileservice和logservice的磁盘分开。" is NOT the solution.

  13. volgariver6 commented on Jul 5, 2023

    @volgariver6
    Contributor

    no progress

  14. added
    severity/s0
    and removed on Jul 6, 2023
  15. volgariver6 commented on Jul 6, 2023

    @volgariver6
    Contributor

    最近standalone测试都没有复现,先降级s0,一边观察一边分析

  16. volgariver6 commented on Jul 10, 2023

    @volgariver6
    Contributor

    set to holding because no progress recently.

  17. volgariver6 commented on Aug 2, 2023

    @volgariver6
    Contributor

    assign back to @aressu1985 , because it does not happen again.

  18. aressu1985 commented on Aug 16, 2023

    @aressu1985
    ContributorAuthor

    fixed

  19. volgariver6 commented on Mar 5, 2024

    @volgariver6
    Contributor

    related with #12221

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

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions