Skip to content
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

checker: fix the issue that a region does not merge to the sibling with smaller size (#1723) #1726

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Sep 3, 2019

cherry-pick #1723 to release-3.0


Signed-off-by: disksing i@disksing.com

What problem does this PR solve?

The target argument passed to checkTarget is always nil, so next and prev are never compared.

What is changed and how it works?

Make it right and clear and add test.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

Signed-off-by: disksing <i@disksing.com>
targetNext := m.checkTarget(region, next, target)
target = m.checkTarget(region, prev, target)
if target != targetNext && m.cluster.GetEnableOneWayMerge() {
checkerCounter.WithLabelValues("merge_checker", "skip_left").Inc()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, do we need to keep the metrics?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

em, seems not very useful

@nolouch nolouch added the status/can-merge Indicates a PR has been approved by a committer. label Sep 4, 2019
@sre-bot
Copy link
Contributor Author

sre-bot commented Sep 4, 2019

/run-all-tests

@sre-bot sre-bot merged commit b365c1d into tikv:release-3.0 Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants