-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
txn: allow larger initial chunk size for read check-ts for read-consistency #37226
Comments
@TonsnakeLin |
|
I found that adjusting tidb_init_chunk_size can't reslove this problem. The tidb_init_chunk_size can't control the rows fetched from |
Looks like the |
I'm not sure how to use Can adjusting |
We need to figure out the workaround strategy and document it, especially when the feature scope of the lazy-tso would be expanded to DMLs. I'm not quite sure if there would be extra development work to adapt it. |
Another diagnosis enhancement requirement is that some metrics or slow log information is needed to show the impact of the retry, for example, if the user may mistakenly enable the |
This is the proposals to add statistics for
|
Enhancement
When the read check-ts feature is used, there's a constraint that the statement retry could work only when conflicts are detected and there're no result packets are responded to the client yet.
However, the init chunk size has a limit upper bound which is 32, which means the select statement may respond error to the client if the total result row number is larger than 32 and there's possible conflict after the first chunk is responded. As a result, the client may receive errors and have to process these errors if the read check-ts feature is enabled and the whole result row number is large, even the conflict happens rarely.
An enhancement for the read check-ts feature is to allow the init chunk size to be adjusted to a larger value like 1024 so the client does not need to handle errors when the conflict happens rarely and the select result row number is large.
The text was updated successfully, but these errors were encountered: