-
Notifications
You must be signed in to change notification settings - Fork 6k
unistore: Added error if row is too long to be locked #59699
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
unistore: Added error if row is too long to be locked #59699
Conversation
Hi @mjonss. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #59699 +/- ##
================================================
+ Coverage 72.9648% 73.3022% +0.3373%
================================================
Files 1695 1698 +3
Lines 468793 472399 +3606
================================================
+ Hits 342054 346279 +4225
+ Misses 105675 105026 -649
- Partials 21064 21094 +30
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way of doing this would be to reduce the tidb_txn_entry_size_limit
on startup if unistore is used. However I think doing this on write as it is done now is easier for people to understand.
Maybe adding a warning on startup would be nice, but I don't think that's needed either.
I think it is clear enough to the user that this is a unistore limitation, but we could explicitly add that to the message as well, just in case it wasn't clear enough.
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but please add the comment as suggested by @Defined2014
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Defined2014, dveeden The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/check-issue-triage-complete |
Co-authored-by: Daniël van Eeden <[email protected]>
/retest |
@Defined2014: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/unhold |
What problem does this PR solve?
Issue Number: close #59651
Problem Summary:
The Unistore cannot handle a row is larger than the lockstore arena blocksize.
What changed and how does it work?
Added an error when trying to lock a row that is too big.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.