Skip to content

[Bug]: UT TestLockNeedUpgrade fail #19920

Closed

Description

@YANGGMM

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

2.0-dev

Commit ID

newest

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

image

Expected Behavior

No response

Steps to Reproduce

https://github.com/matrixorigin/matrixone/actions/runs/11770570627/job/32783195098?pr=19919

Additional information

No response

Activity

  1. added
    kind/bug
    on Nov 11, 2024
  2. added
    severity/s0
    on Nov 11, 2024
  3. added this to the 2.0.1 milestone on Nov 11, 2024
  4. jensenojs commented on Nov 11, 2024

    @jensenojs
    Contributor

    正常的执行流程是 :

    1. remoteLockTable 发起请求
    2. localLockTable 上锁
    3. 发现行锁数量过大
    4. 尝试行锁升级为表锁
    5. 升级成功, 测试结束

    目前看到日志中, 看到成功地走入了第四步, 即Trying to upgrade lock level due, 但是在尝试升级为表锁之后的上锁失败了.

    ...
    a164e0a,3a164e0b,3a164e0c,3a164e0d,3a164e0e,3a164e0f,3a164e10,3a164e11,3a164e12,3a164e13,3a164e14,3a164e15,3a164e16,3a164e17,3a164e18,3a164e19,3a164e1a,3a164e1b,3a164e1c,3a164e1d,3a164e1e,3a164e1f,3a164e20]", "opts": "Exclusive-Row-Wait", "remote": "0-272596(272596)-17312904024755964890-cn-11001-1731290398211523887", "error": "row level lock is too large that need upgrade to table level lock"}
    2024-11-11T02:07:46.8341109Z 2024/11/11 02:04:08.623269 +0000 INFO lockop/lock_op.go:645 Trying to upgrade lock level due to too many row level locks for txn �OZeq��T���r��<�
    2024-11-11T02:07:46.8342625Z 2024/11/11 02:04:09.005022 +0000 INFO cn-service.MetricStorageUsage mometric/cron_task.go:221 start next round {"service": "2-cn-11001", "uuid": "2-cn-11001", "span": {}}
    2024-11-11T02:07:46.8343846Z     issue_test.go:595: 
    2024-11-11T02:07:46.8344612Z         	Error Trace:	/home/runner/work/matrixone/matrixone/pkg/tests/issues/issue_test.go:595
    2024-11-11T02:07:46.8345851Z         	            				/home/runner/work/matrixone/matrixone/pkg/sql/compile/sql_executor.go:138
    2024-11-11T02:07:46.8347036Z         	            				/home/runner/work/matrixone/matrixone/pkg/tests/issues/issue_test.go:588
    2024-11-11T02:07:46.8348101Z         	            				/home/runner/work/matrixone/matrixone/pkg/embed/testing.go:76
    2024-11-11T02:07:46.8349221Z         	            				/home/runner/work/matrixone/matrixone/pkg/tests/issues/issue_test.go:484
    2024-11-11T02:07:46.8349868Z         	Error:      	Received unexpected error:
    2024-11-11T02:07:46.8350701Z         	            	row level lock is too large that need upgrade to table level lock
    2024-11-11T02:07:46.8351277Z         	Test:       	TestLockNeedUpgrade
    2024-11-11T02:07:46.8351811Z --- FAIL: TestLockNeedUpgrade (12.80s)
    2024-11-11T02:07:46.8379171Z ##[group]Run find ./ut-report -name top.txt -exec cat {} \;
    2024-11-11T02:07:46.8379728Z �[36;1mfind ./ut-report -name top.txt -exec cat {} \;�[0m
    2024-11-11T02:07:46.8436207Z shell: /usr/bin/bash -e {0}
    ...
    
  5. jensenojs commented on Nov 14, 2024

    @jensenojs
    Contributor

    已经加了相关日志, 等后续观察

  6. modified the milestones: 2.0.1, 2.1.0 on Nov 14, 2024
  7. modified the milestones: 2.1.0, 2.0.1 on Nov 23, 2024
  8. 13 remaining items

  9. iamlinjunhong commented on Jan 3, 2025

    @iamlinjunhong
    Contributor

    正在处理

  10. iamlinjunhong commented on Jan 8, 2025

    @iamlinjunhong
    Contributor

    正在处理

  11. iamlinjunhong commented on Jan 13, 2025

    @iamlinjunhong
    Contributor

    暂未处理

  12. iamlinjunhong commented on Jan 16, 2025

    @iamlinjunhong
    Contributor

    暂未处理

  13. iamlinjunhong commented on Jan 21, 2025

    @iamlinjunhong
    Contributor

    暂未处理

  14. assigned and unassigned on Feb 24, 2025
  15. modified the milestones: 2.0.2, Backlog on Feb 24, 2025
  16. matrix-meow commented on Jul 21, 2026

    @matrix-meow
    Contributor

    Recurrence: PR #25815 (fix if, main). context deadline exceeded after 30.89s. Should this be reopened?

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

Metadata

Metadata

Assignees

Labels

bug/utkind/bugphase/testingseverity/s0

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions