-
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
when run sysbench prepare,report “Write conflict” error #27197
Comments
@Lily2025 Can you add information about executing sql? |
The conflicts on the meta key The create table statement looks like this:
One create table statement will use a transaction to increase the
|
From the TiDB log:
|
So, the problem is, creating new tables need to modify the |
The current behavior is by-design and I'll change it as the 'enhancement'. |
I have a PR change the optimistic to pessimistic, it may alleviate the problem, waiting for feedback from the QA. |
|
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
1、run sysbench prepare
threads=1024
tableNum = 512
tableSize = 10000000000
2. What did you expect to see? (Required)
no “Write conflict” error
3. What did you see instead (Required)
sysbench report “Write conflict” error
4. What is your TiDB version? (Required)
------------+
| Release Version: v5.2.0
Edition: Community
Git Commit Hash: 30cf15a
Git Branch: heads/refs/tags/v5.2.0
UTC Build Time: 2021-08-09 12:01:42
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
The text was updated successfully, but these errors were encountered: