-
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
LOAD DATA behavior change causes upgrade issue #19809
Comments
/label sig/executor |
These labels are not found |
/label sig/execution |
Integrity check: Please comment /info to get template |
Please edit this comment to complete the following informationBug1. Root Cause Analysis (RCA)The bug is caused due to a change in the behavior of 2. SymptomAn error due to transaction size too large. 3. All Trigger Conditionssee in issue body 4. Workaround (optional)A partial workaround can be achieved by increasing the transaction size. For large LOAD DATA statements, this may not be possible. A shell script can be used to split the file into multiple chunks. 5. Affected versionsunreleased 6. Fixed versionsunplanned |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
See my comment here and pingcap/docs#3838
There is an issue in that to restore the previous behavior for
LOAD DATA
, becausetidb_dml_batch_size
is only session scope. Therefore, you mustSET tidb_dml_batch_size=20000
for each session, but there are some common cases where that is hard to do:Because this is a breaking change, I propose allowing
GLOBAL | SESSION
scope. This will allow an upgrade path, because the TiDB server can be set to the previous behavior.2. What did you expect to see? (Required)
A small change: tidb_dml_batch_size is SESSION | GLOBAL scope. I prefer the new behavior, I am just concerned about upgrades.
3. What did you see instead (Required)
SESSION scope only
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: