Skip to content

debug txn leak - #18189

Merged
mergify[bot] merged 6 commits into
matrixorigin:mainfrom
daviszhen:0814-debug-3895
Aug 17, 2024
Merged

mergify[bot] merged 6 commits into
matrixorigin:mainfrom
daviszhen:0814-debug-3895

Conversation

@daviszhen

@daviszhen daviszhen commented Aug 17, 2024 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #https://github.com/matrixorigin/MO-Cloud/issues/3895

What this PR does / why we need it:

原因:未定位到。没有goroutineid。

1.给用到txnclient.new的地方都加了createby。标识是谁创建了事务。leak checker会输出createby到日志。
2.实时更新fprints到txnop
3.backses结束时,rollback其创建的事务。通常事务都提交了。如果有泄露,rollback 会结束事务。

@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Aug 17, 2024
@mergify mergify Bot added kind/bug Something isn't working kind/enhancement labels Aug 17, 2024
@mergify
mergify Bot merged commit e03723d into matrixorigin:main Aug 17, 2024
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
原因:未定位到。没有goroutineid。

1.给用到txnclient.new的地方都加了createby。标识是谁创建了事务。leak checker会输出createby到日志。
2.实时更新fprints到txnop
3.backses结束时,rollback其创建的事务。通常事务都提交了。如果有泄露,rollback 会结束事务。

Approved by: @m-schen, @triump2020, @qingxinhome, @XuPeng-SH
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 kind/enhancement size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants