Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cherry-pick to 1.1dev: update kinds of abnormal txn behavior #14942

Merged
merged 11 commits into from Mar 13, 2024

Conversation

daviszhen
Copy link
Contributor

@daviszhen daviszhen commented Mar 13, 2024

What type of PR is this?

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

Which issue(s) this PR fixes:

issue ##14148
#11966
#11858
#14935

What this PR does / why we need it:

文档:https://github.com/matrixorigin/docs/blob/main/design/mo/sql/20240308-daviszhen-txn-kinds.md

对事务异常的情形进行细分,减少人力定位的成本。

事务异常检测线程会周期性的判断活跃事务运行状况。

异常情形:

1. long running txn。

    日志标识:found long running txn。

2. txn in commit。

    日志标识:found txn in commit。

3. txn in rollback。

    日志标识:found txn in rollback。

4. leak txn。(真正需要定位的情形)

    不属于上述情况。姑且认为是事务泄露。

异常日志新增内容:

1,session info。

    ip:port
    session id
    connection id
    account:user:role
    go routine id 

2,profile path。

    profile 保存到在fileservice的路径。保存到指定 etl/profile 目录下。不再输出到日志中。

@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Mar 13, 2024
@mergify mergify bot requested a review from sukki37 March 13, 2024 03:50
@mergify mergify bot merged commit 1cf1500 into matrixorigin:1.1-dev Mar 13, 2024
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement size/M Denotes a PR that changes [100,499] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants