-
Notifications
You must be signed in to change notification settings - Fork 287
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
kv/client: don't resolve lock immediately after a region is initialized #2235
kv/client: don't resolve lock immediately after a region is initialized #2235
Conversation
/run-all-tests |
fe48a78
to
4f3eff7
Compare
/run-all-tests |
/run-kafka-tests |
rts.ts.resolvedTs = lastResolvedTs | ||
rts.ts.eventTime = time.Now() | ||
rts.ts.penalty = 0 |
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.
Could you reset the penalty in func Upsert()
?
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.
Upsert
here is a insert
operation actually, so we must reset penalty outside
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 4f3eff7
|
/run-all-tests |
Codecov Report
@@ Coverage Diff @@
## master #2235 +/- ##
================================================
+ Coverage 52.7179% 54.7285% +2.0106%
================================================
Files 164 171 +7
Lines 17679 20852 +3173
================================================
+ Hits 9320 11412 +2092
- Misses 7348 8333 +985
- Partials 1011 1107 +96 |
In response to a cherrypick label: new pull request created: #2264. |
In response to a cherrypick label: new pull request created: #2265. |
In response to a cherrypick label: new pull request created: #2266. |
What problem does this PR solve?
Fix #2188
What is changed and how it works?
Introduce a penalty mechanism
Check List
Tests
Release note