-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
store/tikv: Make maxTxnTimeUse a configurable value (#8215) #8209
store/tikv: Make maxTxnTimeUse a configurable value (#8215) #8209
Conversation
Signed-off-by: MyonKeminta <[email protected]>
Signed-off-by: MyonKeminta <[email protected]>
Signed-off-by: MyonKeminta <[email protected]>
/run-integration-tests tikv=release-2.0 |
LGTM. |
/run-all-tests pd=release-2.0 tikv=release-2.0 tidb-test=release-2.0 |
I'll also bring this thing to master. |
Signed-off-by: MyonKeminta <[email protected]>
Ah.. sorry.. I forgot to sort imports and pushed again.. |
@MyonKeminta We'd better change the master branch firstly, then cherry pick the commit to the release-2.1 and release-2.0. |
lGTM |
/run-all-tests pd=release-2.0 tikv=release-2.0 tidb-test=release-2.0 |
@zz-jason Tag this PR as release blocker? |
@MyonKeminta No need to, we are not going to release a new version on the 2.0 branch. |
/run-all-tests pd=release-2.0 tikv=release-2.0 tidb-test=release-2.0 |
Signed-off-by: MyonKeminta [email protected]
What problem does this PR solve?
Sometimes in an olap senario, an
insert into select
statement may take too long time to finish. Then themaxTxnTimeUse
(590 seconds) may easily be exceeded. It's better to make it configurable.The
maxTxnTimeUse
is required because we don't want the transaction be broken by GC. That's why we recommend users not to set the gc_life_time less than 10m. However we didn't really check if the gc_life_time was set too short. In this PR, I still didn't check it.What is changed and how it works?
This PR adds a field
max-txn-time-use
to the config file, tikv-client` section. Then in 2pc.go use the config value instead of a constant.Check List
Tests
Code changes
Side effects
Related changes