tidb-dev-guide icon indicating copy to clipboard operation
tidb-dev-guide copied to clipboard

update optimistic-transaction.md

Open TonsnakeLin opened this issue 2 years ago • 7 comments

What issue does this PR solve?

  • close #114

What is changed:

Added dev guide article for optimistic transaction

TonsnakeLin avatar Oct 11 '21 12:10 TonsnakeLin

@cfzjywxk @sticnarf PTAL

TonsnakeLin avatar Oct 11 '21 12:10 TonsnakeLin

How the temp mutations of optimistic transactions are buffered in TiDB may be discussed.

you06 avatar Oct 12 '21 09:10 you06

@you06 @cfzjywxk @sticnarf @tisonkun ping, what's your opinions about the current patch?

zhangyangyu avatar Nov 08 '21 12:11 zhangyangyu

There are still some format issues:

  • The bold marks are not work in code blocks, which should be removed.
  • The main body's function names are in quotation marks, it would be better to put them in backquotes, so they look like func fn().

For the contents of this patch, there are many details of how TiDB implement optimistic transaction like batch processing which looks good, however, some details are missing like error handling(retry or resolve locks).

I think we can accept this document after the format issues are fixed. If someone thinks there are too many code references or any details that are worth mentioned, a further patch will improve this document.

you06 avatar Nov 11 '21 06:11 you06

There are still some format issues:

  • The bold marks are not work in code blocks, which should be removed.
  • The main body's function names are in quotation marks, it would be better to put them in backquotes, so they look like func fn().

For the contents of this patch, there are many details of how TiDB implement optimistic transaction like batch processing which looks good, however, some details are missing like error handling(retry or resolve locks).

I think we can accept this document after the format issues are fixed. If someone thinks there are too many code references or any details that are worth mentioned, a further patch will improve this document.

I have fixed the format issues, thanks. Why so mush code in this paper? I think the new developers want to position the important functions quickly and read the code in detail for a transaction process flow.

TonsnakeLin avatar Nov 29 '21 06:11 TonsnakeLin

@you06 @cfzjywxk please review or approve, thanks

TonsnakeLin avatar Nov 29 '21 06:11 TonsnakeLin

rest LGTM

you06 avatar Nov 29 '21 11:11 you06