tidb-challenge-program / bug-hunting-issue

Bug hunting issues.
3 stars 0 forks source link

P3-[4.0-bug-hunting]-[Pessimistic Transaction]-FAQ Out of Date #34

Open wwar opened 4 years ago

wwar commented 4 years ago

Bug Report

1. What did you do?

On this page: https://pingcap.com/docs/stable/faq/tidb/#does-tidb-support-select-for-update

"Does TiDB support select for update? Yes. But it differs from MySQL in syntax. As a distributed database, TiDB uses the optimistic lock. select for update does not lock data when the transaction is started, but checks conflicts when the transaction is committed. If the check reveals conflicts, the committing transaction rolls back."

2. What did you expect to see?

With the introduction of pessimistic transactions, this behavior is configuration dependent. The text no longer describes the default behavior.

3. What did you see instead?

Text indicates TiDB only supports optimistic transactions still.

4. What version of TiDB are you using? (tidb-server -V or run select tidb_version(); on TiDB)

Docs bug.

shuke987 commented 4 years ago

/bug P3