-
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
store: support maintaining labels in Store #21565
Conversation
@lysu @djshow832 PTAL |
/run-check_dev_2 |
store/tikv/region_cache.go
Outdated
@@ -305,10 +307,29 @@ func (c *RegionCache) asyncCheckAndResolveLoop() { | |||
case <-c.notifyCheckCh: | |||
needCheckStores = needCheckStores[:0] | |||
c.checkAndResolve(needCheckStores) | |||
case <-ticker.C: | |||
// refresh store once a minute to update labels | |||
c.markAllNeedCheck() |
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.
simpler directlyreResolve
all stores.
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.
I think we should reuse needCheck
state
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.
IMO, needCheck
is a way fast update on failed
before. for now, periodic update labels is a maintenance behavior,reuse needCheck
make code more complicated.
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.
That's ok to me. updated.
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.
LGTM
LGTM |
maybe we can simplify |
/merge |
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@Yisaer merge failed. |
/run-check_dev_2 |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@Yisaer merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@Yisaer merge failed. |
/label sig/infra |
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
ref #21540
What is changed and how it works?
Support maintaining store Labels in
Store
and also create a tikcker job to refresh store information to update labels.Check List
Tests
Release note