-
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
tidb_txn_mode don't default to pessimistic #20990
Comments
Thanks for the report, @erikthorselius , |
It would be nice to have a mock that have similar configuration as to the real store or maybe make it configurable from start. We have a library that checks that the database have the right configuration before it can be uses. It works well when accessing a bigger installation (read dev/prod environments) of tidb but not when just running on a developers machine. |
Yes, you are right, we keep it unchanged when using mocktikv because many test code rely on it. Can |
That's is how I solved it in the test's around the library right now. But it is a bit annoying because it takes around 2 seconds for the change to apply. It would be nice if it could be configured via configuration. |
@cfzjywxk @nullnotnil How do you think about this? Do we need to add a configuration item for it, or are there any other solutions? |
I was not aware that the tests rely on optimistic, but that makes sense based on history. Without knowing how much work is involved to switch the tests, I agree with @erikthorselius that mocktikv should be using the same default. Otherwise there might be bugs in the default configuration which are not caught? |
Is it possible to take any decision? I'm just a humble user of your great software, I have a clunky workaround that I can live with. But maybe this could help other users. |
@erikthorselius |
Fixed in #36578 |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: