pingcap / pingcap/docs-cn

sql的操作是如何绑定到特定事务的

Open
#14,487 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/question
Dominant language
Python
Stars
1.8k
Forks
1.2k
Avg merge
1d 16h
Merged PRs (30d)
31

Description

File: /release-7.1/optimistic-transaction.md

场景: 显示声明事务后,sql的执行正常都是在同个事务内进行的。针对使用数据库连接池的场景下(java),如果存在连接被复用了,会不会导致当前sql的执行绑定到了错误的事务中

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read release-7.1/optimistic-transaction.md, especially the section on explicit transactions, and verify how transaction context is associated with SQL execution when Java connection pools reuse connections. Confirm the behavior and update the documentation to explain whether reuse can bind a statement to the wrong transaction, including the relevant usage conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.