-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix: parameter check of TransferReplica and TransferNode #32297
fix: parameter check of TransferReplica and TransferNode #32297
Conversation
// 1004: { | ||
// spawnConfig: map[string]int{"RG4": 2, "RG5": 3}, | ||
// }, | ||
1000: { |
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.
Recover the test case
@@ -1141,11 +1126,6 @@ func (s *Server) TransferReplica(ctx context.Context, req *querypb.TransferRepli | |||
fmt.Sprintf("the target resource group[%s] doesn't exist", req.GetTargetResourceGroup()))), nil | |||
} | |||
|
|||
if req.GetNumReplica() <= 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.
already checked by meta.TransferReplica
@@ -1089,21 +1089,6 @@ func (s *Server) TransferNode(ctx context.Context, req *milvuspb.TransferNodeReq | |||
return merr.Status(err), nil | |||
} | |||
|
|||
if ok := s.meta.ResourceManager.ContainResourceGroup(req.GetSourceResourceGroup()); !ok { |
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.
already checked by TransferNode
@chyezh E2e jenkins job failed, comment |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #32297 +/- ##
==========================================
+ Coverage 81.71% 81.77% +0.06%
==========================================
Files 999 989 -10
Lines 123915 124142 +227
==========================================
+ Hits 101252 101523 +271
+ Misses 18775 18741 -34
+ Partials 3888 3878 -10
|
Signed-off-by: chyezh <chyezh@outlook.com>
4e8bb5a
to
a73f25f
Compare
@chyezh E2e jenkins job failed, comment |
/run-cpu-e2e |
/lgtm |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chyezh, congqixia 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 |
issue: #30647
Same dst and src resource group should not be allowed in
TransferReplica
andTransferNode
.Remove redundant parameter check.