-
Notifications
You must be signed in to change notification settings - Fork 726
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
*: add GetOperator service #1477
Conversation
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
Signed-off-by: nolouch <nolouch@gmail.com>
/rebuild |
// NewOperatorRecords returns a OperatorRecords. | ||
func NewOperatorRecords() *OperatorRecords { | ||
return &OperatorRecords{ | ||
ttl: cache.NewTTL(time.Minute, 10*time.Minute), |
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.
Should we make this parameter configurable?
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 no need, just keep for a while.
server/schedule/mockcluster.go
Outdated
region = region.Clone(core.WithAddPeer(peer)) | ||
case PromoteLearner: | ||
if region.GetStoreLearner(s.ToStore) == nil { | ||
panic("promote peer that doesn't exist") |
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.
It will be better to keep the first letter consistent with other panic messages.
Codecov Report
@@ Coverage Diff @@
## master #1477 +/- ##
==========================================
+ Coverage 67.29% 67.43% +0.13%
==========================================
Files 158 158
Lines 15465 15518 +53
==========================================
+ Hits 10407 10464 +57
- Misses 4108 4113 +5
+ Partials 950 941 -9
Continue to review full report at Codecov.
|
* *: add GetOperator service Signed-off-by: nolouch <nolouch@gmail.com>
* *: add GetOperator service Signed-off-by: nolouch <nolouch@gmail.com>
What problem does this PR solve?
The lightning needs to know the
scatter-region
operator whether finished before import data.What is changed and how it works?
adds a gRPC service.
Check List
Tests