From d82f2572a4aef34c10a5c507cfeb75e6e0cec105 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 21 Jun 2017 08:59:30 -0700 Subject: [PATCH 01/10] etcdserver/etcdserverpb: define 'MoveLeader' RPC Signed-off-by: Gyu-Ho Lee --- etcdserver/etcdserverpb/rpc.proto | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/etcdserver/etcdserverpb/rpc.proto b/etcdserver/etcdserverpb/rpc.proto index 41983f8cfb2..37916c03f16 100644 --- a/etcdserver/etcdserverpb/rpc.proto +++ b/etcdserver/etcdserverpb/rpc.proto @@ -191,6 +191,14 @@ service Maintenance { body: "*" }; } + + // MoveLeader requests current leader node to transfer its leadership to transferee. + rpc MoveLeader(MoveLeaderRequest) returns (MoveLeaderResponse) { + option (google.api.http) = { + post: "/v3alpha/maintenance/transfer-leadership" + body: "*" + }; + } } service Auth { @@ -380,7 +388,7 @@ message RangeRequest { // keys_only when set returns only the keys and not the values. bool keys_only = 8; - + // count_only when set returns only the count of the keys in the range. bool count_only = 9; @@ -558,7 +566,7 @@ message TxnResponse { // CompactionRequest compacts the key-value store up to a given revision. All superseded keys // with a revision less than the compaction revision will be removed. message CompactionRequest { - // revision is the key-value store revision for the compaction operation. + // revision is the key-value store revision for the compaction operation. int64 revision = 1; // physical is set so the RPC will wait until the compaction is physically // applied to the local database such that compacted entries are totally @@ -654,7 +662,7 @@ message WatchResponse { // at a compacted index. // // This happens when creating a watcher at a compacted revision or the watcher cannot - // catch up with the progress of the key-value store. + // catch up with the progress of the key-value store. // // The client should treat the watcher as canceled and should not try to create any // watcher with the same start_revision again. @@ -787,6 +795,15 @@ message DefragmentResponse { ResponseHeader header = 1; } +message MoveLeaderRequest { + // targetID is the node ID for the new leader. + uint64 targetID = 1; +} + +message MoveLeaderResponse { + ResponseHeader header = 1; +} + enum AlarmType { NONE = 0; // default, used to query if any alarm is active NOSPACE = 1; // space quota is exhausted From 265303c19a033539455f84f218bb900063a6622f Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Jun 2017 12:45:53 -0700 Subject: [PATCH 02/10] *: regenerate proto with 'MoveLeader' RPC Signed-off-by: Gyu-Ho Lee --- Documentation/dev-guide/api_reference_v3.md | 17 + .../apispec/swagger/rpc.swagger.json | 47 +- etcdserver/etcdserverpb/etcdserver.pb.go | 2 + etcdserver/etcdserverpb/gw/rpc.pb.gw.go | 45 + etcdserver/etcdserverpb/rpc.pb.go | 886 ++++++++++++------ 5 files changed, 701 insertions(+), 296 deletions(-) diff --git a/Documentation/dev-guide/api_reference_v3.md b/Documentation/dev-guide/api_reference_v3.md index cf3a08e9229..8482e85f4d3 100644 --- a/Documentation/dev-guide/api_reference_v3.md +++ b/Documentation/dev-guide/api_reference_v3.md @@ -70,6 +70,7 @@ This is a generated documentation. Please read the proto files for more. | Defragment | DefragmentRequest | DefragmentResponse | Defragment defragments a member's backend database to recover storage space. | | Hash | HashRequest | HashResponse | Hash returns the hash of the local KV state for consistency checking purpose. This is designed for testing; do not use this in production when there are ongoing transactions. | | Snapshot | SnapshotRequest | SnapshotResponse | Snapshot sends a snapshot of the entire backend from a member over a stream to a client. | +| MoveLeader | MoveLeaderRequest | MoveLeaderResponse | MoveLeader requests current leader node to transfer its leadership to transferee. | @@ -608,6 +609,22 @@ Empty field. +##### message `MoveLeaderRequest` (etcdserver/etcdserverpb/rpc.proto) + +| Field | Description | Type | +| ----- | ----------- | ---- | +| targetID | targetID is the node ID for the new leader. | uint64 | + + + +##### message `MoveLeaderResponse` (etcdserver/etcdserverpb/rpc.proto) + +| Field | Description | Type | +| ----- | ----------- | ---- | +| header | | ResponseHeader | + + + ##### message `PutRequest` (etcdserver/etcdserverpb/rpc.proto) | Field | Description | Type | diff --git a/Documentation/dev-guide/apispec/swagger/rpc.swagger.json b/Documentation/dev-guide/apispec/swagger/rpc.swagger.json index bb14f4f26c1..28e20e0dd6f 100644 --- a/Documentation/dev-guide/apispec/swagger/rpc.swagger.json +++ b/Documentation/dev-guide/apispec/swagger/rpc.swagger.json @@ -934,6 +934,33 @@ } } }, + "/v3alpha/maintenance/transfer-leadership": { + "post": { + "tags": [ + "Maintenance" + ], + "summary": "MoveLeader requests current leader node to transfer its leadership to transferee.", + "operationId": "MoveLeader", + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/etcdserverpbMoveLeaderRequest" + } + } + ], + "responses": { + "200": { + "description": "(empty)", + "schema": { + "$ref": "#/definitions/etcdserverpbMoveLeaderResponse" + } + } + } + } + }, "/v3alpha/watch": { "post": { "tags": [ @@ -1803,6 +1830,24 @@ } } }, + "etcdserverpbMoveLeaderRequest": { + "type": "object", + "properties": { + "targetID": { + "description": "targetID is the node ID for the new leader.", + "type": "string", + "format": "uint64" + } + } + }, + "etcdserverpbMoveLeaderResponse": { + "type": "object", + "properties": { + "header": { + "$ref": "#/definitions/etcdserverpbResponseHeader" + } + } + }, "etcdserverpbPutRequest": { "type": "object", "properties": { @@ -2177,7 +2222,7 @@ "format": "boolean" }, "compact_revision": { - "description": "compact_revision is set to the minimum index if a watcher tries to watch\nat a compacted index.\n\nThis happens when creating a watcher at a compacted revision or the watcher cannot\ncatch up with the progress of the key-value store. \n\nThe client should treat the watcher as canceled and should not try to create any\nwatcher with the same start_revision again.", + "description": "compact_revision is set to the minimum index if a watcher tries to watch\nat a compacted index.\n\nThis happens when creating a watcher at a compacted revision or the watcher cannot\ncatch up with the progress of the key-value store.\n\nThe client should treat the watcher as canceled and should not try to create any\nwatcher with the same start_revision again.", "type": "string", "format": "int64" }, diff --git a/etcdserver/etcdserverpb/etcdserver.pb.go b/etcdserver/etcdserverpb/etcdserver.pb.go index aabf90061f6..febf62cf418 100644 --- a/etcdserver/etcdserverpb/etcdserver.pb.go +++ b/etcdserver/etcdserverpb/etcdserver.pb.go @@ -58,6 +58,8 @@ MemberListResponse DefragmentRequest DefragmentResponse + MoveLeaderRequest + MoveLeaderResponse AlarmRequest AlarmMember AlarmResponse diff --git a/etcdserver/etcdserverpb/gw/rpc.pb.gw.go b/etcdserver/etcdserverpb/gw/rpc.pb.gw.go index 601df671df8..2421181b85e 100644 --- a/etcdserver/etcdserverpb/gw/rpc.pb.gw.go +++ b/etcdserver/etcdserverpb/gw/rpc.pb.gw.go @@ -361,6 +361,19 @@ func request_Maintenance_Snapshot_0(ctx context.Context, marshaler runtime.Marsh } +func request_Maintenance_MoveLeader_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.MaintenanceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq etcdserverpb.MoveLeaderRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil { + return nil, metadata, grpc.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.MoveLeader(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + func request_Auth_AuthEnable_0(ctx context.Context, marshaler runtime.Marshaler, client etcdserverpb.AuthClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq etcdserverpb.AuthEnableRequest var metadata runtime.ServerMetadata @@ -1335,6 +1348,34 @@ func RegisterMaintenanceHandler(ctx context.Context, mux *runtime.ServeMux, conn }) + mux.Handle("POST", pattern_Maintenance_MoveLeader_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(ctx) + defer cancel() + if cn, ok := w.(http.CloseNotifier); ok { + go func(done <-chan struct{}, closed <-chan bool) { + select { + case <-done: + case <-closed: + cancel() + } + }(ctx.Done(), cn.CloseNotify()) + } + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, req) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + } + resp, md, err := request_Maintenance_MoveLeader_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, outboundMarshaler, w, req, err) + return + } + + forward_Maintenance_MoveLeader_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + return nil } @@ -1348,6 +1389,8 @@ var ( pattern_Maintenance_Hash_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "maintenance", "hash"}, "")) pattern_Maintenance_Snapshot_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "maintenance", "snapshot"}, "")) + + pattern_Maintenance_MoveLeader_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v3alpha", "maintenance", "transfer-leadership"}, "")) ) var ( @@ -1360,6 +1403,8 @@ var ( forward_Maintenance_Hash_0 = runtime.ForwardResponseMessage forward_Maintenance_Snapshot_0 = runtime.ForwardResponseStream + + forward_Maintenance_MoveLeader_0 = runtime.ForwardResponseMessage ) // RegisterAuthHandlerFromEndpoint is same as RegisterAuthHandler but diff --git a/etcdserver/etcdserverpb/rpc.pb.go b/etcdserver/etcdserverpb/rpc.pb.go index 04e4c7cdaae..1cef5dc9e20 100644 --- a/etcdserver/etcdserverpb/rpc.pb.go +++ b/etcdserver/etcdserverpb/rpc.pb.go @@ -204,7 +204,7 @@ func (x AlarmRequest_AlarmAction) String() string { return proto.EnumName(AlarmRequest_AlarmAction_name, int32(x)) } func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int) { - return fileDescriptorRpc, []int{41, 0} + return fileDescriptorRpc, []int{43, 0} } type ResponseHeader struct { @@ -2157,6 +2157,39 @@ func (m *DefragmentResponse) GetHeader() *ResponseHeader { return nil } +type MoveLeaderRequest struct { + // targetID is the node ID for the new leader. + TargetID uint64 `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"` +} + +func (m *MoveLeaderRequest) Reset() { *m = MoveLeaderRequest{} } +func (m *MoveLeaderRequest) String() string { return proto.CompactTextString(m) } +func (*MoveLeaderRequest) ProtoMessage() {} +func (*MoveLeaderRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{41} } + +func (m *MoveLeaderRequest) GetTargetID() uint64 { + if m != nil { + return m.TargetID + } + return 0 +} + +type MoveLeaderResponse struct { + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` +} + +func (m *MoveLeaderResponse) Reset() { *m = MoveLeaderResponse{} } +func (m *MoveLeaderResponse) String() string { return proto.CompactTextString(m) } +func (*MoveLeaderResponse) ProtoMessage() {} +func (*MoveLeaderResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{42} } + +func (m *MoveLeaderResponse) GetHeader() *ResponseHeader { + if m != nil { + return m.Header + } + return nil +} + type AlarmRequest struct { // action is the kind of alarm request to issue. The action // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a @@ -2172,7 +2205,7 @@ type AlarmRequest struct { func (m *AlarmRequest) Reset() { *m = AlarmRequest{} } func (m *AlarmRequest) String() string { return proto.CompactTextString(m) } func (*AlarmRequest) ProtoMessage() {} -func (*AlarmRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{41} } +func (*AlarmRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{43} } func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction { if m != nil { @@ -2205,7 +2238,7 @@ type AlarmMember struct { func (m *AlarmMember) Reset() { *m = AlarmMember{} } func (m *AlarmMember) String() string { return proto.CompactTextString(m) } func (*AlarmMember) ProtoMessage() {} -func (*AlarmMember) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{42} } +func (*AlarmMember) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{44} } func (m *AlarmMember) GetMemberID() uint64 { if m != nil { @@ -2230,7 +2263,7 @@ type AlarmResponse struct { func (m *AlarmResponse) Reset() { *m = AlarmResponse{} } func (m *AlarmResponse) String() string { return proto.CompactTextString(m) } func (*AlarmResponse) ProtoMessage() {} -func (*AlarmResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{43} } +func (*AlarmResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{45} } func (m *AlarmResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2252,7 +2285,7 @@ type StatusRequest struct { func (m *StatusRequest) Reset() { *m = StatusRequest{} } func (m *StatusRequest) String() string { return proto.CompactTextString(m) } func (*StatusRequest) ProtoMessage() {} -func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{44} } +func (*StatusRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{46} } type StatusResponse struct { Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` @@ -2271,7 +2304,7 @@ type StatusResponse struct { func (m *StatusResponse) Reset() { *m = StatusResponse{} } func (m *StatusResponse) String() string { return proto.CompactTextString(m) } func (*StatusResponse) ProtoMessage() {} -func (*StatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{45} } +func (*StatusResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{47} } func (m *StatusResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2321,7 +2354,7 @@ type AuthEnableRequest struct { func (m *AuthEnableRequest) Reset() { *m = AuthEnableRequest{} } func (m *AuthEnableRequest) String() string { return proto.CompactTextString(m) } func (*AuthEnableRequest) ProtoMessage() {} -func (*AuthEnableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{46} } +func (*AuthEnableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{48} } type AuthDisableRequest struct { } @@ -2329,7 +2362,7 @@ type AuthDisableRequest struct { func (m *AuthDisableRequest) Reset() { *m = AuthDisableRequest{} } func (m *AuthDisableRequest) String() string { return proto.CompactTextString(m) } func (*AuthDisableRequest) ProtoMessage() {} -func (*AuthDisableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{47} } +func (*AuthDisableRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{49} } type AuthenticateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` @@ -2339,7 +2372,7 @@ type AuthenticateRequest struct { func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} } func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) } func (*AuthenticateRequest) ProtoMessage() {} -func (*AuthenticateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{48} } +func (*AuthenticateRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{50} } func (m *AuthenticateRequest) GetName() string { if m != nil { @@ -2363,7 +2396,7 @@ type AuthUserAddRequest struct { func (m *AuthUserAddRequest) Reset() { *m = AuthUserAddRequest{} } func (m *AuthUserAddRequest) String() string { return proto.CompactTextString(m) } func (*AuthUserAddRequest) ProtoMessage() {} -func (*AuthUserAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{49} } +func (*AuthUserAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{51} } func (m *AuthUserAddRequest) GetName() string { if m != nil { @@ -2386,7 +2419,7 @@ type AuthUserGetRequest struct { func (m *AuthUserGetRequest) Reset() { *m = AuthUserGetRequest{} } func (m *AuthUserGetRequest) String() string { return proto.CompactTextString(m) } func (*AuthUserGetRequest) ProtoMessage() {} -func (*AuthUserGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{50} } +func (*AuthUserGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{52} } func (m *AuthUserGetRequest) GetName() string { if m != nil { @@ -2403,7 +2436,7 @@ type AuthUserDeleteRequest struct { func (m *AuthUserDeleteRequest) Reset() { *m = AuthUserDeleteRequest{} } func (m *AuthUserDeleteRequest) String() string { return proto.CompactTextString(m) } func (*AuthUserDeleteRequest) ProtoMessage() {} -func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{51} } +func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{53} } func (m *AuthUserDeleteRequest) GetName() string { if m != nil { @@ -2423,7 +2456,7 @@ func (m *AuthUserChangePasswordRequest) Reset() { *m = AuthUserChangePas func (m *AuthUserChangePasswordRequest) String() string { return proto.CompactTextString(m) } func (*AuthUserChangePasswordRequest) ProtoMessage() {} func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRpc, []int{52} + return fileDescriptorRpc, []int{54} } func (m *AuthUserChangePasswordRequest) GetName() string { @@ -2450,7 +2483,7 @@ type AuthUserGrantRoleRequest struct { func (m *AuthUserGrantRoleRequest) Reset() { *m = AuthUserGrantRoleRequest{} } func (m *AuthUserGrantRoleRequest) String() string { return proto.CompactTextString(m) } func (*AuthUserGrantRoleRequest) ProtoMessage() {} -func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{53} } +func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{55} } func (m *AuthUserGrantRoleRequest) GetUser() string { if m != nil { @@ -2474,7 +2507,7 @@ type AuthUserRevokeRoleRequest struct { func (m *AuthUserRevokeRoleRequest) Reset() { *m = AuthUserRevokeRoleRequest{} } func (m *AuthUserRevokeRoleRequest) String() string { return proto.CompactTextString(m) } func (*AuthUserRevokeRoleRequest) ProtoMessage() {} -func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{54} } +func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{56} } func (m *AuthUserRevokeRoleRequest) GetName() string { if m != nil { @@ -2498,7 +2531,7 @@ type AuthRoleAddRequest struct { func (m *AuthRoleAddRequest) Reset() { *m = AuthRoleAddRequest{} } func (m *AuthRoleAddRequest) String() string { return proto.CompactTextString(m) } func (*AuthRoleAddRequest) ProtoMessage() {} -func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{55} } +func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{57} } func (m *AuthRoleAddRequest) GetName() string { if m != nil { @@ -2514,7 +2547,7 @@ type AuthRoleGetRequest struct { func (m *AuthRoleGetRequest) Reset() { *m = AuthRoleGetRequest{} } func (m *AuthRoleGetRequest) String() string { return proto.CompactTextString(m) } func (*AuthRoleGetRequest) ProtoMessage() {} -func (*AuthRoleGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{56} } +func (*AuthRoleGetRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{58} } func (m *AuthRoleGetRequest) GetRole() string { if m != nil { @@ -2529,7 +2562,7 @@ type AuthUserListRequest struct { func (m *AuthUserListRequest) Reset() { *m = AuthUserListRequest{} } func (m *AuthUserListRequest) String() string { return proto.CompactTextString(m) } func (*AuthUserListRequest) ProtoMessage() {} -func (*AuthUserListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{57} } +func (*AuthUserListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{59} } type AuthRoleListRequest struct { } @@ -2537,7 +2570,7 @@ type AuthRoleListRequest struct { func (m *AuthRoleListRequest) Reset() { *m = AuthRoleListRequest{} } func (m *AuthRoleListRequest) String() string { return proto.CompactTextString(m) } func (*AuthRoleListRequest) ProtoMessage() {} -func (*AuthRoleListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{58} } +func (*AuthRoleListRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{60} } type AuthRoleDeleteRequest struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` @@ -2546,7 +2579,7 @@ type AuthRoleDeleteRequest struct { func (m *AuthRoleDeleteRequest) Reset() { *m = AuthRoleDeleteRequest{} } func (m *AuthRoleDeleteRequest) String() string { return proto.CompactTextString(m) } func (*AuthRoleDeleteRequest) ProtoMessage() {} -func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{59} } +func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{61} } func (m *AuthRoleDeleteRequest) GetRole() string { if m != nil { @@ -2566,7 +2599,7 @@ func (m *AuthRoleGrantPermissionRequest) Reset() { *m = AuthRoleGrantPer func (m *AuthRoleGrantPermissionRequest) String() string { return proto.CompactTextString(m) } func (*AuthRoleGrantPermissionRequest) ProtoMessage() {} func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRpc, []int{60} + return fileDescriptorRpc, []int{62} } func (m *AuthRoleGrantPermissionRequest) GetName() string { @@ -2593,7 +2626,7 @@ func (m *AuthRoleRevokePermissionRequest) Reset() { *m = AuthRoleRevokeP func (m *AuthRoleRevokePermissionRequest) String() string { return proto.CompactTextString(m) } func (*AuthRoleRevokePermissionRequest) ProtoMessage() {} func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int) { - return fileDescriptorRpc, []int{61} + return fileDescriptorRpc, []int{63} } func (m *AuthRoleRevokePermissionRequest) GetRole() string { @@ -2624,7 +2657,7 @@ type AuthEnableResponse struct { func (m *AuthEnableResponse) Reset() { *m = AuthEnableResponse{} } func (m *AuthEnableResponse) String() string { return proto.CompactTextString(m) } func (*AuthEnableResponse) ProtoMessage() {} -func (*AuthEnableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{62} } +func (*AuthEnableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{64} } func (m *AuthEnableResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2640,7 +2673,7 @@ type AuthDisableResponse struct { func (m *AuthDisableResponse) Reset() { *m = AuthDisableResponse{} } func (m *AuthDisableResponse) String() string { return proto.CompactTextString(m) } func (*AuthDisableResponse) ProtoMessage() {} -func (*AuthDisableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{63} } +func (*AuthDisableResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{65} } func (m *AuthDisableResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2658,7 +2691,7 @@ type AuthenticateResponse struct { func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} } func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) } func (*AuthenticateResponse) ProtoMessage() {} -func (*AuthenticateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{64} } +func (*AuthenticateResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{66} } func (m *AuthenticateResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2681,7 +2714,7 @@ type AuthUserAddResponse struct { func (m *AuthUserAddResponse) Reset() { *m = AuthUserAddResponse{} } func (m *AuthUserAddResponse) String() string { return proto.CompactTextString(m) } func (*AuthUserAddResponse) ProtoMessage() {} -func (*AuthUserAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{65} } +func (*AuthUserAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{67} } func (m *AuthUserAddResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2698,7 +2731,7 @@ type AuthUserGetResponse struct { func (m *AuthUserGetResponse) Reset() { *m = AuthUserGetResponse{} } func (m *AuthUserGetResponse) String() string { return proto.CompactTextString(m) } func (*AuthUserGetResponse) ProtoMessage() {} -func (*AuthUserGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{66} } +func (*AuthUserGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{68} } func (m *AuthUserGetResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2721,7 +2754,7 @@ type AuthUserDeleteResponse struct { func (m *AuthUserDeleteResponse) Reset() { *m = AuthUserDeleteResponse{} } func (m *AuthUserDeleteResponse) String() string { return proto.CompactTextString(m) } func (*AuthUserDeleteResponse) ProtoMessage() {} -func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{67} } +func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{69} } func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2738,7 +2771,7 @@ func (m *AuthUserChangePasswordResponse) Reset() { *m = AuthUserChangePa func (m *AuthUserChangePasswordResponse) String() string { return proto.CompactTextString(m) } func (*AuthUserChangePasswordResponse) ProtoMessage() {} func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRpc, []int{68} + return fileDescriptorRpc, []int{70} } func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader { @@ -2755,7 +2788,7 @@ type AuthUserGrantRoleResponse struct { func (m *AuthUserGrantRoleResponse) Reset() { *m = AuthUserGrantRoleResponse{} } func (m *AuthUserGrantRoleResponse) String() string { return proto.CompactTextString(m) } func (*AuthUserGrantRoleResponse) ProtoMessage() {} -func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{69} } +func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{71} } func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2771,7 +2804,7 @@ type AuthUserRevokeRoleResponse struct { func (m *AuthUserRevokeRoleResponse) Reset() { *m = AuthUserRevokeRoleResponse{} } func (m *AuthUserRevokeRoleResponse) String() string { return proto.CompactTextString(m) } func (*AuthUserRevokeRoleResponse) ProtoMessage() {} -func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{70} } +func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{72} } func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2787,7 +2820,7 @@ type AuthRoleAddResponse struct { func (m *AuthRoleAddResponse) Reset() { *m = AuthRoleAddResponse{} } func (m *AuthRoleAddResponse) String() string { return proto.CompactTextString(m) } func (*AuthRoleAddResponse) ProtoMessage() {} -func (*AuthRoleAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{71} } +func (*AuthRoleAddResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{73} } func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2804,7 +2837,7 @@ type AuthRoleGetResponse struct { func (m *AuthRoleGetResponse) Reset() { *m = AuthRoleGetResponse{} } func (m *AuthRoleGetResponse) String() string { return proto.CompactTextString(m) } func (*AuthRoleGetResponse) ProtoMessage() {} -func (*AuthRoleGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{72} } +func (*AuthRoleGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{74} } func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2828,7 +2861,7 @@ type AuthRoleListResponse struct { func (m *AuthRoleListResponse) Reset() { *m = AuthRoleListResponse{} } func (m *AuthRoleListResponse) String() string { return proto.CompactTextString(m) } func (*AuthRoleListResponse) ProtoMessage() {} -func (*AuthRoleListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{73} } +func (*AuthRoleListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{75} } func (m *AuthRoleListResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2852,7 +2885,7 @@ type AuthUserListResponse struct { func (m *AuthUserListResponse) Reset() { *m = AuthUserListResponse{} } func (m *AuthUserListResponse) String() string { return proto.CompactTextString(m) } func (*AuthUserListResponse) ProtoMessage() {} -func (*AuthUserListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{74} } +func (*AuthUserListResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{76} } func (m *AuthUserListResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2875,7 +2908,7 @@ type AuthRoleDeleteResponse struct { func (m *AuthRoleDeleteResponse) Reset() { *m = AuthRoleDeleteResponse{} } func (m *AuthRoleDeleteResponse) String() string { return proto.CompactTextString(m) } func (*AuthRoleDeleteResponse) ProtoMessage() {} -func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{75} } +func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int) { return fileDescriptorRpc, []int{77} } func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader { if m != nil { @@ -2892,7 +2925,7 @@ func (m *AuthRoleGrantPermissionResponse) Reset() { *m = AuthRoleGrantPe func (m *AuthRoleGrantPermissionResponse) String() string { return proto.CompactTextString(m) } func (*AuthRoleGrantPermissionResponse) ProtoMessage() {} func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRpc, []int{76} + return fileDescriptorRpc, []int{78} } func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader { @@ -2910,7 +2943,7 @@ func (m *AuthRoleRevokePermissionResponse) Reset() { *m = AuthRoleRevoke func (m *AuthRoleRevokePermissionResponse) String() string { return proto.CompactTextString(m) } func (*AuthRoleRevokePermissionResponse) ProtoMessage() {} func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int) { - return fileDescriptorRpc, []int{77} + return fileDescriptorRpc, []int{79} } func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader { @@ -2962,6 +2995,8 @@ func init() { proto.RegisterType((*MemberListResponse)(nil), "etcdserverpb.MemberListResponse") proto.RegisterType((*DefragmentRequest)(nil), "etcdserverpb.DefragmentRequest") proto.RegisterType((*DefragmentResponse)(nil), "etcdserverpb.DefragmentResponse") + proto.RegisterType((*MoveLeaderRequest)(nil), "etcdserverpb.MoveLeaderRequest") + proto.RegisterType((*MoveLeaderResponse)(nil), "etcdserverpb.MoveLeaderResponse") proto.RegisterType((*AlarmRequest)(nil), "etcdserverpb.AlarmRequest") proto.RegisterType((*AlarmMember)(nil), "etcdserverpb.AlarmMember") proto.RegisterType((*AlarmResponse)(nil), "etcdserverpb.AlarmResponse") @@ -3742,6 +3777,8 @@ type MaintenanceClient interface { Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) + // MoveLeader requests current leader node to transfer its leadership to transferee. + MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) } type maintenanceClient struct { @@ -3820,6 +3857,15 @@ func (x *maintenanceSnapshotClient) Recv() (*SnapshotResponse, error) { return m, nil } +func (c *maintenanceClient) MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) { + out := new(MoveLeaderResponse) + err := grpc.Invoke(ctx, "/etcdserverpb.Maintenance/MoveLeader", in, out, c.cc, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // Server API for Maintenance service type MaintenanceServer interface { @@ -3835,6 +3881,8 @@ type MaintenanceServer interface { Hash(context.Context, *HashRequest) (*HashResponse, error) // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) error + // MoveLeader requests current leader node to transfer its leadership to transferee. + MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error) } func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer) { @@ -3934,6 +3982,24 @@ func (x *maintenanceSnapshotServer) Send(m *SnapshotResponse) error { return x.ServerStream.SendMsg(m) } +func _Maintenance_MoveLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MoveLeaderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MaintenanceServer).MoveLeader(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/etcdserverpb.Maintenance/MoveLeader", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MaintenanceServer).MoveLeader(ctx, req.(*MoveLeaderRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _Maintenance_serviceDesc = grpc.ServiceDesc{ ServiceName: "etcdserverpb.Maintenance", HandlerType: (*MaintenanceServer)(nil), @@ -3954,6 +4020,10 @@ var _Maintenance_serviceDesc = grpc.ServiceDesc{ MethodName: "Hash", Handler: _Maintenance_Hash_Handler, }, + { + MethodName: "MoveLeader", + Handler: _Maintenance_MoveLeader_Handler, + }, }, Streams: []grpc.StreamDesc{ { @@ -6329,6 +6399,57 @@ func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error) { return i, nil } +func (m *MoveLeaderRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MoveLeaderRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.TargetID != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintRpc(dAtA, i, uint64(m.TargetID)) + } + return i, nil +} + +func (m *MoveLeaderResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MoveLeaderResponse) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Header != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) + n36, err := m.Header.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n36 + } + return i, nil +} + func (m *AlarmRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -6409,11 +6530,11 @@ func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n36, err := m.Header.MarshalTo(dAtA[i:]) + n37, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n36 + i += n37 } if len(m.Alarms) > 0 { for _, msg := range m.Alarms { @@ -6467,11 +6588,11 @@ func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n37, err := m.Header.MarshalTo(dAtA[i:]) + n38, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n37 + i += n38 } if len(m.Version) > 0 { dAtA[i] = 0x12 @@ -6869,11 +6990,11 @@ func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintRpc(dAtA, i, uint64(m.Perm.Size())) - n38, err := m.Perm.MarshalTo(dAtA[i:]) + n39, err := m.Perm.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n38 + i += n39 } return i, nil } @@ -6933,11 +7054,11 @@ func (m *AuthEnableResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n39, err := m.Header.MarshalTo(dAtA[i:]) + n40, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n39 + i += n40 } return i, nil } @@ -6961,11 +7082,11 @@ func (m *AuthDisableResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n40, err := m.Header.MarshalTo(dAtA[i:]) + n41, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n40 + i += n41 } return i, nil } @@ -6989,11 +7110,11 @@ func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n41, err := m.Header.MarshalTo(dAtA[i:]) + n42, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n41 + i += n42 } if len(m.Token) > 0 { dAtA[i] = 0x12 @@ -7023,11 +7144,11 @@ func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n42, err := m.Header.MarshalTo(dAtA[i:]) + n43, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n42 + i += n43 } return i, nil } @@ -7051,11 +7172,11 @@ func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n43, err := m.Header.MarshalTo(dAtA[i:]) + n44, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n43 + i += n44 } if len(m.Roles) > 0 { for _, s := range m.Roles { @@ -7094,11 +7215,11 @@ func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n44, err := m.Header.MarshalTo(dAtA[i:]) + n45, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n44 + i += n45 } return i, nil } @@ -7122,11 +7243,11 @@ func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n45, err := m.Header.MarshalTo(dAtA[i:]) + n46, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n45 + i += n46 } return i, nil } @@ -7150,11 +7271,11 @@ func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n46, err := m.Header.MarshalTo(dAtA[i:]) + n47, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n46 + i += n47 } return i, nil } @@ -7178,11 +7299,11 @@ func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n47, err := m.Header.MarshalTo(dAtA[i:]) + n48, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n47 + i += n48 } return i, nil } @@ -7206,11 +7327,11 @@ func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n48, err := m.Header.MarshalTo(dAtA[i:]) + n49, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n48 + i += n49 } return i, nil } @@ -7234,11 +7355,11 @@ func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n49, err := m.Header.MarshalTo(dAtA[i:]) + n50, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n49 + i += n50 } if len(m.Perm) > 0 { for _, msg := range m.Perm { @@ -7274,11 +7395,11 @@ func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n50, err := m.Header.MarshalTo(dAtA[i:]) + n51, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n50 + i += n51 } if len(m.Roles) > 0 { for _, s := range m.Roles { @@ -7317,11 +7438,11 @@ func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n51, err := m.Header.MarshalTo(dAtA[i:]) + n52, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n51 + i += n52 } if len(m.Users) > 0 { for _, s := range m.Users { @@ -7360,11 +7481,11 @@ func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n52, err := m.Header.MarshalTo(dAtA[i:]) + n53, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n52 + i += n53 } return i, nil } @@ -7388,11 +7509,11 @@ func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n53, err := m.Header.MarshalTo(dAtA[i:]) + n54, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n53 + i += n54 } return i, nil } @@ -7416,11 +7537,11 @@ func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintRpc(dAtA, i, uint64(m.Header.Size())) - n54, err := m.Header.MarshalTo(dAtA[i:]) + n55, err := m.Header.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n54 + i += n55 } return i, nil } @@ -8224,6 +8345,25 @@ func (m *DefragmentResponse) Size() (n int) { return n } +func (m *MoveLeaderRequest) Size() (n int) { + var l int + _ = l + if m.TargetID != 0 { + n += 1 + sovRpc(uint64(m.TargetID)) + } + return n +} + +func (m *MoveLeaderResponse) Size() (n int) { + var l int + _ = l + if m.Header != nil { + l = m.Header.Size() + n += 1 + l + sovRpc(uint64(l)) + } + return n +} + func (m *AlarmRequest) Size() (n int) { var l int _ = l @@ -13780,6 +13920,158 @@ func (m *DefragmentResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MoveLeaderRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MoveLeaderRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MoveLeaderRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetID", wireType) + } + m.TargetID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TargetID |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipRpc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MoveLeaderResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MoveLeaderResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MoveLeaderResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowRpc + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthRpc + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Header == nil { + m.Header = &ResponseHeader{} + } + if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipRpc(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthRpc + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *AlarmRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -17294,223 +17586,227 @@ var ( func init() { proto.RegisterFile("rpc.proto", fileDescriptorRpc) } var fileDescriptorRpc = []byte{ - // 3487 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5b, 0xdd, 0x6f, 0x1b, 0xc7, - 0xb5, 0xd7, 0x92, 0x12, 0x29, 0x1e, 0x7e, 0x88, 0x1e, 0xc9, 0x36, 0xb5, 0xb6, 0x65, 0x79, 0xfc, - 0x25, 0xdb, 0x89, 0x94, 0x28, 0xb9, 0xf7, 0xc1, 0x37, 0x08, 0xae, 0x2c, 0x31, 0x96, 0x22, 0x59, - 0x72, 0x56, 0xb2, 0x93, 0x0b, 0x04, 0x97, 0x58, 0x91, 0x63, 0x6a, 0x21, 0x72, 0x97, 0xd9, 0x5d, - 0xd2, 0x52, 0x6e, 0x2e, 0x70, 0x91, 0x9b, 0xa0, 0x68, 0x81, 0xbe, 0x34, 0x0f, 0xfd, 0x7a, 0x2c, - 0x8a, 0x22, 0x7f, 0x40, 0xd1, 0x97, 0x3e, 0x17, 0x45, 0x5f, 0x5a, 0xa0, 0xff, 0x40, 0x91, 0xf6, - 0xdf, 0x28, 0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d1, 0x43, 0x04, 0x1f, 0xfe, 0xa9, 0x06, 0x45, 0x65, - 0x67, 0x7e, 0xc3, 0x08, 0x7b, 0x15, 0x0a, 0x4c, 0x07, 0xd2, 0x12, 0x31, 0x76, 0xda, 0x08, 0x09, - 0xe8, 0xdf, 0xa1, 0x20, 0xb7, 0xb7, 0x0c, 0xb3, 0xb5, 0x64, 0xb1, 0x7b, 0x3d, 0x23, 0x64, 0xc5, - 0xdb, 0x70, 0x81, 0x59, 0xa5, 0x49, 0x4f, 0xce, 0xd2, 0x8e, 0xea, 0xd9, 0x52, 0x8b, 0x9d, 0x2d, - 0x75, 0x98, 0xee, 0x1d, 0x9d, 0x7a, 0x56, 0xd3, 0xec, 0x08, 0x2d, 0x82, 0x36, 0x7e, 0x17, 0x90, - 0x2a, 0x6c, 0x9c, 0xe9, 0xe2, 0x32, 0x14, 0x37, 0x4d, 0xef, 0x48, 0xa8, 0x84, 0x3f, 0x80, 0x12, - 0x6f, 0x8e, 0x65, 0x43, 0x04, 0x93, 0x47, 0xa6, 0x77, 0xc4, 0x14, 0x2f, 0x1b, 0xec, 0x1b, 0x5f, - 0x80, 0x99, 0x7d, 0xdb, 0xec, 0x79, 0x47, 0x8e, 0xcc, 0x02, 0xf4, 0xe6, 0x50, 0x0d, 0x69, 0x63, - 0x21, 0xde, 0x85, 0x19, 0x97, 0x74, 0x4d, 0xcb, 0xb6, 0xec, 0x76, 0xe3, 0xf0, 0xd4, 0x27, 0x9e, - 0xb8, 0x58, 0x54, 0x02, 0xf2, 0x23, 0x4a, 0xa5, 0xaa, 0x1d, 0x76, 0x9c, 0x43, 0x11, 0x0e, 0xd8, - 0x37, 0xfe, 0xb5, 0x06, 0xa5, 0xf7, 0x4d, 0xbf, 0x29, 0xad, 0x80, 0xb6, 0xa0, 0x12, 0x04, 0x01, - 0x46, 0x11, 0xba, 0xc4, 0x52, 0x11, 0x1b, 0x23, 0x8f, 0x9c, 0x32, 0x8b, 0x94, 0x9b, 0x2a, 0x81,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a, 0x94, 0x40, - 0x4f, 0x1a, 0x60, 0x4a, 0x42, 0xcf, 0x23, 0xc8, 0x3d, 0x61, 0x45, 0x24, 0x65, 0x56, 0x93, 0x72, - 0x56, 0xb6, 0xd9, 0xe5, 0x57, 0xdb, 0x82, 0xc1, 0xbe, 0x59, 0x7e, 0x25, 0xc4, 0x7d, 0x66, 0xec, - 0xf0, 0x3c, 0x5e, 0x30, 0x82, 0x36, 0x45, 0x6f, 0x76, 0x2c, 0x62, 0xfb, 0xac, 0x77, 0x92, 0xf5, - 0x2a, 0x14, 0xbc, 0x0c, 0x55, 0x8e, 0xb4, 0xd6, 0x6a, 0x29, 0xb9, 0x3c, 0x90, 0xa7, 0x45, 0xe5, - 0xe1, 0x5f, 0x69, 0x70, 0x41, 0x19, 0x30, 0x96, 0xed, 0x5e, 0x81, 0x1c, 0x2f, 0x95, 0x89, 0x3c, - 0x32, 0x17, 0x1d, 0xc5, 0x61, 0x0c, 0xc1, 0x83, 0x96, 0x21, 0xcf, 0xbf, 0xe4, 0x61, 0x25, 0x99, - 0x5d, 0x32, 0xe1, 0xdb, 0x30, 0x2b, 0x48, 0xa4, 0xeb, 0x24, 0x6d, 0x13, 0x66, 0x50, 0xfc, 0x09, - 0xcc, 0x45, 0xd9, 0xc6, 0x9a, 0x92, 0xa2, 0x64, 0xe6, 0x3c, 0x4a, 0xae, 0x49, 0x25, 0x9f, 0xf5, - 0x5a, 0x4a, 0xda, 0x8b, 0xaf, 0xba, 0xba, 0x22, 0x99, 0xd8, 0x8a, 0x04, 0x13, 0x90, 0x22, 0xbe, - 0xd3, 0x09, 0xcc, 0xca, 0xed, 0xb0, 0x63, 0x79, 0xc1, 0x61, 0xe8, 0x63, 0x40, 0x2a, 0xf1, 0xbb, - 0x56, 0x68, 0x83, 0xbc, 0x70, 0xcd, 0x76, 0x97, 0x04, 0xa1, 0x9e, 0x9e, 0x32, 0x55, 0xe2, 0x58, - 0xc1, 0xf1, 0x8f, 0x1a, 0x94, 0xd6,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, 0xa9, 0x90, 0xe2, 0x79, 0x86, 0x36, 0x8b, 0x2b, 0x01, 0x1a, 0x2b, 0x75, 0x3e, 0xd4, 0xee, - 0x2f, 0x69, 0xaf, 0x69, 0xab, 0xff, 0x3f, 0x09, 0x53, 0xac, 0x74, 0x84, 0x7a, 0x00, 0x61, 0x51, - 0x30, 0x3e, 0xcf, 0xa1, 0x32, 0x63, 0x7c, 0x9e, 0xc3, 0xf5, 0x44, 0x7c, 0x9d, 0x21, 0xcf, 0xe3, - 0xb9, 0x00, 0x99, 0xfd, 0x9e, 0x60, 0x85, 0x15, 0x89, 0xa8, 0x59, 0x5f, 0x42, 0x51, 0x29, 0xee, - 0xa1, 0x24, 0x89, 0x91, 0xea, 0x60, 0x7c, 0x9b, 0x24, 0x54, 0x06, 0xf1, 0x4d, 0x06, 0x7a, 0x0d, - 0xd7, 0x54, 0xe3, 0x72, 0x5c, 0x97, 0x71, 0x52, 0xe0, 0xcf, 0x34, 0xa8, 0x44, 0x0b, 0x7c, 0xe8, - 0x66, 0x82, 0xe8, 0x78, 0x9d, 0x50, 0xbf, 0x35, 0x9a, 0x29, 0x55, 0x05, 0x8e, 0x7f, 0x4c, 0x48, - 0xcf, 0xa4, 0x9c, 0xc2, 0xf6, 0xe8, 0x7b, 0x1a, 0xcc, 0xc4, 0xca, 0x76, 0x28, 0x09, 0x62, 0xa8, - 0x28, 0xa8, 0xdf, 0x3e, 0x83, 0x4b, 0x68, 0x72, 0x97, 0x69, 0x72, 0x03, 0x5f, 0x1d, 0x36, 0x86, - 0x6f, 0x75, 0x89, 0xef, 0x08, 0x6d, 0x56, 0xff, 0x91, 0x85, 0xfc, 0x3a, 0xff, 0xf1, 0x17, 0xf2, - 0xa1, 0x10, 0x54, 0xc2, 0xd0, 0x42, 0x52, 0x55, 0x22, 0x3c, 0xb2, 0xeb, 0xd7, 0x53, 0xfb, 0x85, - 0x0a, 0x77, 0x98, 0x0a, 0x8b, 0xf8, 0x4a, 0xa0, 0x82, 0xf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, - 0x72, 0xd3, 0xf4, 0x8e, 0x50, 0x2c, 0x09, 0x29, 0x6f, 0xbb, 0xba, 0x9e, 0xd4, 0x25, 0xa0, 0x6e, - 0x31, 0xa8, 0x05, 0x3c, 0x9f, 0x08, 0x75, 0x64, 0x7a, 0x34, 0xa6, 0xa3, 0x3e, 0x4c, 0xcb, 0xf7, - 0x5a, 0x74, 0x2d, 0x66, 0xb3, 0xe8, 0xdb, 0xae, 0xbe, 0x90, 0xd6, 0x2d, 0x00, 0x97, 0x18, 0x20, - 0xc6, 0xd7, 0x92, 0x8d, 0x2a, 0xd8, 0x1f, 0x6a, 0xf7, 0x5f, 0xd3, 0x56, 0x7f, 0x50, 0x85, 0x49, - 0x7a, 0x5e, 0xa2, 0x59, 0x24, 0xbc, 0x66, 0xc6, 0x2d, 0x3c, 0x54, 0xdc, 0x89, 0x5b, 0x78, 0xf8, - 0x86, 0x9a, 0x90, 0x45, 0xd8, 0x4f, 0x60, 0x09, 0xe3, 0xa2, 0x33, 0xf6, 0xa1, 0xa8, 0x5c, 0x46, - 0x51, 0x82, 0xc4, 0x68, 0xe9, 0x28, 0x9e, 0x45, 0x12, 0x6e, 0xb2, 0x78, 0x91, 0x81, 0xea, 0xf8, - 0x62, 0x14, 0xb4, 0xc5, 0xd9, 0x28, 0xea, 0x27, 0x50, 0x52, 0x6f, 0xad, 0x28, 0x41, 0x68, 0xac, - 0x36, 0x15, 0x8f, 0x15, 0x49, 0x97, 0xde, 0x04, 0xa7, 0x09, 0x7e, 0xf0, 0x2b, 0x79, 0x29, 0xfa, - 0x47, 0x90, 0x17, 0x77, 0xd9, 0xa4, 0xf9, 0x46, 0xab, 0x59, 0x49, 0xf3, 0x8d, 0x5d, 0x84, 0x13, - 0x8e, 0x24, 0x0c, 0x96, 0x9e, 0xd9, 0x65, 0x80, 0x16, 0x90, 0x8f, 0x89, 0x9f, 0x06, 0x19, 0xd6, - 0x67, 0xd2, 0x20, 0x95, 0xfb, 0xd2, 0x48, 0xc8, 0x36, 0xf1, 0xc5, 0x5e, 0x96, 0x97, 0x11, 0x94, - 0x22, 0x51, 0x8d, 0x86, 0x78, 0x14, 0x4b, 0xea, 0x29, 0x32, 0x44, 0x15, 0xa1, 0x10, 0xfd, 0x2f, - 0x40, 0x78, 0xf1, 0x8e, 0x1f, 0x0c, 0x12, 0xab, 0x77, 0xf1, 0x83, 0x41, 0xf2, 0xdd, 0x3d, 0xc1, - 0x83, 0x43, 0x70, 0x7e, 0x92, 0xa5, 0xf0, 0x3f, 0xd6, 0x00, 0x0d, 0x5f, 0xd4, 0xd1, 0x83, 0x64, - 0x88, 0xc4, 0xc2, 0xa0, 0xfe, 0xca, 0xf9, 0x98, 0x53, 0xa3, 0x67, 0xa8, 0x57, 0x93, 0x0d, 0xe9, - 0xbd, 0xa4, 0x9a, 0x7d, 0xae, 0x41, 0x39, 0x72, 0xd5, 0x47, 0x77, 0x52, 0xd6, 0x39, 0x56, 0x5c, - 0xd4, 0xef, 0x9e, 0xc9, 0x97, 0x7a, 0x76, 0x52, 0x76, 0x85, 0x3c, 0x37, 0x7e, 0x5f, 0x83, 0x4a, - 0xb4, 0x3e, 0x80, 0x52, 0x00, 0x86, 0x2a, 0x94, 0xfa, 0xd2, 0xd9, 0x8c, 0xe7, 0x58, 0xad, 0xf0, - 0x28, 0xf9, 0x11, 0xe4, 0x45, 0x59, 0x21, 0xc9, 0x2d, 0xa2, 0x05, 0xce, 0x24, 0xb7, 0x88, 0xd5, - 0x24, 0xd2, 0xdc, 0x82, 0xde, 0xd0, 0x15, 0x4f, 0x14, 0xc5, 0x87, 0x34, 0xc8, 0xd1, 0x9e, 0x18, - 0xab, 0x5c, 0x8c, 0x84, 0x0c, 0x3d, 0x51, 0x96, 0x1e, 0x50, 0x8a, 0xc4, 0x33, 0x3c, 0x31, 0x5e, - 0xb9, 0x48, 0xf3, 0x44, 0x86, 0xaa, 0x78, 0x62, 0x58, 0x29, 0x48, 0xf2, 0xc4, 0xa1, 0xf2, 0x6d, - 0x92, 0x27, 0x0e, 0x17, 0x1b, 0xd2, 0xd6, 0x96, 0x81, 0x47, 0x3c, 0x71, 0x36, 0xa1, 0xb2, 0x80, - 0x5e, 0x49, 0xb1, 0x69, 0x62, 0x69, 0x58, 0x7f, 0xf5, 0x9c, 0xdc, 0xa3, 0x3d, 0x80, 0xaf, 0x86, - 0xf4, 0x80, 0x9f, 0x6b, 0x30, 0x97, 0x54, 0x9a, 0x40, 0x29, 0x60, 0x29, 0x75, 0x65, 0x7d, 0xf9, - 0xbc, 0xec, 0xe7, 0xb0, 0x5b, 0xe0, 0x13, 0x8f, 0xaa, 0xbf, 0xff, 0x6a, 0x41, 0xfb, 0xd3, 0x57, - 0x0b, 0xda, 0x5f, 0xbe, 0x5a, 0xd0, 0x7e, 0xf2, 0xd7, 0x85, 0x89, 0xc3, 0x1c, 0xfb, 0x7f, 0x28, - 0x6f, 0xfc, 0x33, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x0e, 0xf0, 0x0b, 0x0e, 0x33, 0x00, 0x00, + // 3549 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x5b, 0x5f, 0x6f, 0x1b, 0xc7, + 0xb5, 0xd7, 0x92, 0x22, 0x29, 0x1e, 0xfe, 0x11, 0x35, 0x92, 0x6d, 0x6a, 0x6d, 0xcb, 0xf2, 0xf8, + 0x9f, 0x6c, 0xc7, 0x52, 0xa2, 0xe4, 0xde, 0x07, 0xdf, 0x20, 0xb8, 0xb2, 0xc4, 0x58, 0x8a, 0x64, + 0xc9, 0x59, 0xc9, 0x4e, 0x2e, 0x10, 0x5c, 0x62, 0x45, 0x8e, 0xa5, 0x85, 0xc8, 0x5d, 0x66, 0x77, + 0x49, 0x4b, 0x69, 0x0a, 0x14, 0x69, 0x82, 0xa2, 0x05, 0xfa, 0xd2, 0x3c, 0xf4, 0xdf, 0x63, 0x51, + 0x14, 0xf9, 0x00, 0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12, 0xa3, + 0x15, 0xac, 0x78, 0x32, 0x4b, 0xb8, 0x50, 0xe3, 0x79, 0x06, 0xaa, 0xe3, 0x0b, 0x51, 0xd0, 0x36, + 0x67, 0xa3, 0xa8, 0x1f, 0x43, 0x59, 0xbd, 0x3c, 0xa3, 0x04, 0xa1, 0xb1, 0x12, 0x59, 0x3c, 0x64, + 0x25, 0xdd, 0xbd, 0x13, 0x7c, 0x37, 0xf8, 0xd1, 0xb3, 0xe4, 0xa5, 0xe8, 0x1f, 0x42, 0x41, 0x5c, + 0xa9, 0x93, 0xe6, 0x1b, 0x2d, 0xaa, 0x25, 0xcd, 0x37, 0x76, 0x1f, 0x4f, 0x38, 0x19, 0x31, 0x58, + 0x7a, 0x75, 0x90, 0x79, 0x42, 0x40, 0x3e, 0x26, 0x7e, 0x1a, 0x64, 0x58, 0x26, 0x4a, 0x83, 0x54, + 0xae, 0x6d, 0xa7, 0x42, 0x1e, 0x10, 0x5f, 0xb8, 0x94, 0xbc, 0x13, 0xa1, 0x14, 0x89, 0x6a, 0x50, + 0xc6, 0xa7, 0xb1, 0xa4, 0x1e, 0x66, 0x43, 0x54, 0x11, 0x91, 0xd1, 0x77, 0x01, 0xc2, 0xfb, 0x7f, + 0xfc, 0x7c, 0x92, 0x58, 0x44, 0x8c, 0x9f, 0x4f, 0x92, 0x4b, 0x08, 0x09, 0x81, 0x24, 0x04, 0xe7, + 0x07, 0x6a, 0x0a, 0xff, 0x53, 0x0d, 0xd0, 0x70, 0xbd, 0x00, 0xdd, 0x4f, 0x86, 0x48, 0xac, 0x4f, + 0xea, 0xaf, 0x9c, 0x8f, 0x39, 0x35, 0x88, 0x87, 0x7a, 0xb5, 0xd8, 0x90, 0xde, 0x4b, 0xaa, 0xd9, + 0x67, 0x1a, 0x54, 0x22, 0x15, 0x07, 0x74, 0x3b, 0x65, 0x9d, 0x63, 0x35, 0x4e, 0xfd, 0xce, 0x99, + 0x7c, 0xa9, 0x47, 0x38, 0x65, 0x57, 0xc8,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bd77c0b3a52d1901d8ac3a61b12a17bbc3a8 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 21 Jun 2017 09:27:13 -0700 Subject: [PATCH 03/10] etcdserver/*: add 'ErrNotLeader' Signed-off-by: Gyu-Ho Lee --- etcdserver/api/v3rpc/rpctypes/error.go | 3 +++ etcdserver/api/v3rpc/util.go | 1 + etcdserver/errors.go | 1 + 3 files changed, 5 insertions(+) diff --git a/etcdserver/api/v3rpc/rpctypes/error.go b/etcdserver/api/v3rpc/rpctypes/error.go index 0907e902c67..719ad8157a7 100644 --- a/etcdserver/api/v3rpc/rpctypes/error.go +++ b/etcdserver/api/v3rpc/rpctypes/error.go @@ -59,6 +59,7 @@ var ( ErrGRPCInvalidAuthMgmt = grpc.Errorf(codes.InvalidArgument, "etcdserver: invalid auth management") ErrGRPCNoLeader = grpc.Errorf(codes.Unavailable, "etcdserver: no leader") + ErrGRPCNotLeader = grpc.Errorf(codes.Unavailable, "etcdserver: not leader") ErrGRPCNotCapable = grpc.Errorf(codes.Unavailable, "etcdserver: not capable") ErrGRPCStopped = grpc.Errorf(codes.Unavailable, "etcdserver: server stopped") ErrGRPCTimeout = grpc.Errorf(codes.Unavailable, "etcdserver: request timed out") @@ -106,6 +107,7 @@ var ( grpc.ErrorDesc(ErrGRPCInvalidAuthMgmt): ErrGRPCInvalidAuthMgmt, grpc.ErrorDesc(ErrGRPCNoLeader): ErrGRPCNoLeader, + grpc.ErrorDesc(ErrGRPCNotLeader): ErrGRPCNotLeader, grpc.ErrorDesc(ErrGRPCNotCapable): ErrGRPCNotCapable, grpc.ErrorDesc(ErrGRPCStopped): ErrGRPCStopped, grpc.ErrorDesc(ErrGRPCTimeout): ErrGRPCTimeout, @@ -153,6 +155,7 @@ var ( ErrInvalidAuthMgmt = Error(ErrGRPCInvalidAuthMgmt) ErrNoLeader = Error(ErrGRPCNoLeader) + ErrNotLeader = Error(ErrGRPCNotLeader) ErrNotCapable = Error(ErrGRPCNotCapable) ErrStopped = Error(ErrGRPCStopped) ErrTimeout = Error(ErrGRPCTimeout) diff --git a/etcdserver/api/v3rpc/util.go b/etcdserver/api/v3rpc/util.go index de7f2e5b193..ecbd1762378 100644 --- a/etcdserver/api/v3rpc/util.go +++ b/etcdserver/api/v3rpc/util.go @@ -39,6 +39,7 @@ var toGRPCErrorMap = map[error]error{ etcdserver.ErrTooManyRequests: rpctypes.ErrTooManyRequests, etcdserver.ErrNoLeader: rpctypes.ErrGRPCNoLeader, + etcdserver.ErrNotLeader: rpctypes.ErrGRPCNotLeader, etcdserver.ErrStopped: rpctypes.ErrGRPCStopped, etcdserver.ErrTimeout: rpctypes.ErrGRPCTimeout, etcdserver.ErrTimeoutDueToLeaderFail: rpctypes.ErrGRPCTimeoutDueToLeaderFail, diff --git a/etcdserver/errors.go b/etcdserver/errors.go index ed749dbe8d8..09571e56e31 100644 --- a/etcdserver/errors.go +++ b/etcdserver/errors.go @@ -29,6 +29,7 @@ var ( ErrTimeoutLeaderTransfer = errors.New("etcdserver: request timed out, leader transfer took too long") ErrNotEnoughStartedMembers = errors.New("etcdserver: re-configuration failed due to not enough started members") ErrNoLeader = errors.New("etcdserver: no leader") + ErrNotLeader = errors.New("etcdserver: not leader") ErrRequestTooLarge = errors.New("etcdserver: request is too large") ErrNoSpace = errors.New("etcdserver: no space") ErrTooManyRequests = errors.New("etcdserver: too many requests") From b1a0ae3a3e11e292b759a5b4929be8a6a3a71e8a Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Jun 2017 12:47:47 -0700 Subject: [PATCH 04/10] etcdserver/api/v3rpc: add 'MoveLeader' to 'maintenanceServer' Signed-off-by: Gyu-Ho Lee --- etcdserver/api/v3rpc/maintenance.go | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/etcdserver/api/v3rpc/maintenance.go b/etcdserver/api/v3rpc/maintenance.go index 3657d036082..d0a73551d76 100644 --- a/etcdserver/api/v3rpc/maintenance.go +++ b/etcdserver/api/v3rpc/maintenance.go @@ -20,6 +20,7 @@ import ( "github.com/coreos/etcd/auth" "github.com/coreos/etcd/etcdserver" + "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" pb "github.com/coreos/etcd/etcdserver/etcdserverpb" "github.com/coreos/etcd/mvcc" "github.com/coreos/etcd/mvcc/backend" @@ -40,9 +41,14 @@ type Alarmer interface { Alarm(ctx context.Context, ar *pb.AlarmRequest) (*pb.AlarmResponse, error) } +type LeaderTransferrer interface { + MoveLeader(ctx context.Context, lead, target uint64) error +} + type RaftStatusGetter interface { Index() uint64 Term() uint64 + ID() types.ID Leader() types.ID } @@ -56,11 +62,12 @@ type maintenanceServer struct { kg KVGetter bg BackendGetter a Alarmer + lt LeaderTransferrer hdr header } func NewMaintenanceServer(s *etcdserver.EtcdServer) pb.MaintenanceServer { - srv := &maintenanceServer{rg: s, kg: s, bg: s, a: s, hdr: newHeader(s)} + srv := &maintenanceServer{rg: s, kg: s, bg: s, a: s, lt: s, hdr: newHeader(s)} return &authMaintenanceServer{srv, s} } @@ -147,6 +154,17 @@ func (ms *maintenanceServer) Status(ctx context.Context, ar *pb.StatusRequest) ( return resp, nil } +func (ms *maintenanceServer) MoveLeader(ctx context.Context, tr *pb.MoveLeaderRequest) (*pb.MoveLeaderResponse, error) { + if ms.rg.ID() != ms.rg.Leader() { + return nil, rpctypes.ErrGRPCNotLeader + } + + if err := ms.lt.MoveLeader(ctx, uint64(ms.rg.Leader()), tr.TargetID); err != nil { + return nil, togRPCError(err) + } + return &pb.MoveLeaderResponse{}, nil +} + type authMaintenanceServer struct { *maintenanceServer ag AuthGetter @@ -188,3 +206,7 @@ func (ams *authMaintenanceServer) Hash(ctx context.Context, r *pb.HashRequest) ( func (ams *authMaintenanceServer) Status(ctx context.Context, ar *pb.StatusRequest) (*pb.StatusResponse, error) { return ams.maintenanceServer.Status(ctx, ar) } + +func (ams *authMaintenanceServer) MoveLeader(ctx context.Context, tr *pb.MoveLeaderRequest) (*pb.MoveLeaderResponse, error) { + return ams.maintenanceServer.MoveLeader(ctx, tr) +} From 3e263d5a4daec9d53d03a348e57d6f119bd6bb8d Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Jun 2017 12:49:02 -0700 Subject: [PATCH 05/10] proxy/*: add 'MoveLeader' RPC Signed-off-by: Gyu-Ho Lee --- proxy/grpcproxy/adapter/maintenance_client_adapter.go | 4 ++++ proxy/grpcproxy/maintenance.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/proxy/grpcproxy/adapter/maintenance_client_adapter.go b/proxy/grpcproxy/adapter/maintenance_client_adapter.go index 9b21bf2576e..84c56f4eac5 100644 --- a/proxy/grpcproxy/adapter/maintenance_client_adapter.go +++ b/proxy/grpcproxy/adapter/maintenance_client_adapter.go @@ -43,6 +43,10 @@ func (s *mts2mtc) Hash(ctx context.Context, r *pb.HashRequest, opts ...grpc.Call return s.mts.Hash(ctx, r) } +func (s *mts2mtc) MoveLeader(ctx context.Context, r *pb.MoveLeaderRequest, opts ...grpc.CallOption) (*pb.MoveLeaderResponse, error) { + return s.mts.MoveLeader(ctx, r) +} + func (s *mts2mtc) Snapshot(ctx context.Context, in *pb.SnapshotRequest, opts ...grpc.CallOption) (pb.Maintenance_SnapshotClient, error) { cs := newPipeStream(ctx, func(ss chanServerStream) error { return s.mts.Snapshot(in, &ss2scServerStream{ss}) diff --git a/proxy/grpcproxy/maintenance.go b/proxy/grpcproxy/maintenance.go index 209dc94a712..0a852c35089 100644 --- a/proxy/grpcproxy/maintenance.go +++ b/proxy/grpcproxy/maintenance.go @@ -72,3 +72,8 @@ func (mp *maintenanceProxy) Status(ctx context.Context, r *pb.StatusRequest) (*p conn := mp.client.ActiveConnection() return pb.NewMaintenanceClient(conn).Status(ctx, r) } + +func (mp *maintenanceProxy) MoveLeader(ctx context.Context, r *pb.MoveLeaderRequest) (*pb.MoveLeaderResponse, error) { + conn := mp.client.ActiveConnection() + return pb.NewMaintenanceClient(conn).MoveLeader(ctx, r) +} From 403ba1dfa78ae58b21450a03bc41fc448139cc9f Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Jun 2017 12:50:52 -0700 Subject: [PATCH 06/10] etcdserver: expose 'transferLeadership' as 'MoveLeader' Signed-off-by: Gyu-Ho Lee --- etcdserver/server.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/etcdserver/server.go b/etcdserver/server.go index 9c3fced2914..151138953d2 100644 --- a/etcdserver/server.go +++ b/etcdserver/server.go @@ -932,9 +932,8 @@ func (s *EtcdServer) isLeader() bool { return uint64(s.ID()) == s.Lead() } -// transferLeadership transfers the leader to the given transferee. -// TODO: maybe expose to client? -func (s *EtcdServer) transferLeadership(ctx context.Context, lead, transferee uint64) error { +// MoveLeader transfers the leader to the given transferee. +func (s *EtcdServer) MoveLeader(ctx context.Context, lead, transferee uint64) error { now := time.Now() interval := time.Duration(s.Cfg.TickMs) * time.Millisecond @@ -973,7 +972,7 @@ func (s *EtcdServer) TransferLeadership() error { tm := s.Cfg.ReqTimeout() ctx, cancel := context.WithTimeout(s.ctx, tm) - err := s.transferLeadership(ctx, s.Lead(), uint64(transferee)) + err := s.MoveLeader(ctx, s.Lead(), uint64(transferee)) cancel() return err } From c5532dd2a241214f3488475f2a8ff7de653ecf4e Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Jun 2017 12:53:22 -0700 Subject: [PATCH 07/10] integration: test 'MoveLeader' service Signed-off-by: Gyu-Ho Lee --- integration/cluster_test.go | 45 ------------- integration/v3_leadership_test.go | 108 ++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+), 45 deletions(-) create mode 100644 integration/v3_leadership_test.go diff --git a/integration/cluster_test.go b/integration/cluster_test.go index 5a1040adb7a..5907d6841f3 100644 --- a/integration/cluster_test.go +++ b/integration/cluster_test.go @@ -526,51 +526,6 @@ func clusterMustProgress(t *testing.T, membs []*member) { } } -func TestTransferLeader(t *testing.T) { - defer testutil.AfterTest(t) - - clus := NewClusterV3(t, &ClusterConfig{Size: 3}) - defer clus.Terminate(t) - - oldLeadIdx := clus.WaitLeader(t) - oldLeadID := uint64(clus.Members[oldLeadIdx].s.ID()) - - // ensure followers go through leader transition while learship transfer - idc := make(chan uint64) - for i := range clus.Members { - if oldLeadIdx != i { - go func(m *member) { - idc <- checkLeaderTransition(t, m, oldLeadID) - }(clus.Members[i]) - } - } - - err := clus.Members[oldLeadIdx].s.TransferLeadership() - if err != nil { - t.Fatal(err) - } - - // wait until leader transitions have happened - var newLeadIDs [2]uint64 - for i := range newLeadIDs { - select { - case newLeadIDs[i] = <-idc: - case <-time.After(time.Second): - t.Fatal("timed out waiting for leader transition") - } - } - - // remaining members must agree on the same leader - if newLeadIDs[0] != newLeadIDs[1] { - t.Fatalf("expected same new leader %d == %d", newLeadIDs[0], newLeadIDs[1]) - } - - // new leader must be different than the old leader - if oldLeadID == newLeadIDs[0] { - t.Fatalf("expected old leader %d != new leader %d", oldLeadID, newLeadIDs[0]) - } -} - func TestSpeedyTerminate(t *testing.T) { defer testutil.AfterTest(t) clus := NewClusterV3(t, &ClusterConfig{Size: 3}) diff --git a/integration/v3_leadership_test.go b/integration/v3_leadership_test.go new file mode 100644 index 00000000000..7f41f3bfe5b --- /dev/null +++ b/integration/v3_leadership_test.go @@ -0,0 +1,108 @@ +// Copyright 2017 The etcd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package integration + +import ( + "context" + "testing" + "time" + + "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" + pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "github.com/coreos/etcd/pkg/testutil" +) + +func TestMoveLeader(t *testing.T) { testMoveLeader(t, true) } +func TestMoveLeaderService(t *testing.T) { testMoveLeader(t, false) } + +func testMoveLeader(t *testing.T, auto bool) { + defer testutil.AfterTest(t) + + clus := NewClusterV3(t, &ClusterConfig{Size: 3}) + defer clus.Terminate(t) + + oldLeadIdx := clus.WaitLeader(t) + oldLeadID := uint64(clus.Members[oldLeadIdx].s.ID()) + + // ensure followers go through leader transition while learship transfer + idc := make(chan uint64) + for i := range clus.Members { + if oldLeadIdx != i { + go func(m *member) { + idc <- checkLeaderTransition(t, m, oldLeadID) + }(clus.Members[i]) + } + } + + target := uint64(clus.Members[(oldLeadIdx+1)%3].s.ID()) + if auto { + err := clus.Members[oldLeadIdx].s.TransferLeadership() + if err != nil { + t.Fatal(err) + } + } else { + mvc := toGRPC(clus.Client(oldLeadIdx)).Maintenance + _, err := mvc.MoveLeader(context.TODO(), &pb.MoveLeaderRequest{TargetID: target}) + if err != nil { + t.Fatal(err) + } + } + + // wait until leader transitions have happened + var newLeadIDs [2]uint64 + for i := range newLeadIDs { + select { + case newLeadIDs[i] = <-idc: + case <-time.After(time.Second): + t.Fatal("timed out waiting for leader transition") + } + } + + // remaining members must agree on the same leader + if newLeadIDs[0] != newLeadIDs[1] { + t.Fatalf("expected same new leader %d == %d", newLeadIDs[0], newLeadIDs[1]) + } + + // new leader must be different than the old leader + if oldLeadID == newLeadIDs[0] { + t.Fatalf("expected old leader %d != new leader %d", oldLeadID, newLeadIDs[0]) + } + + // if move-leader were used, new leader must match transferee + if !auto { + if newLeadIDs[0] != target { + t.Fatalf("expected new leader %d != target %d", newLeadIDs[0], target) + } + } +} + +// TestMoveLeaderError ensures that request to non-leader fail. +func TestMoveLeaderError(t *testing.T) { + defer testutil.AfterTest(t) + + clus := NewClusterV3(t, &ClusterConfig{Size: 3}) + defer clus.Terminate(t) + + oldLeadIdx := clus.WaitLeader(t) + followerIdx := (oldLeadIdx + 1) % 3 + + target := uint64(clus.Members[(oldLeadIdx+2)%3].s.ID()) + + mvc := toGRPC(clus.Client(followerIdx)).Maintenance + _, err := mvc.MoveLeader(context.TODO(), &pb.MoveLeaderRequest{TargetID: target}) + if !eqErrGRPC(err, rpctypes.ErrGRPCNotLeader) { + t.Errorf("err = %v, want %v", err, rpctypes.ErrGRPCNotLeader) + } +} From 581a83dfd961aa326fffbe9f90a520a39116201d Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Jun 2017 12:56:33 -0700 Subject: [PATCH 08/10] clientv3/*: add 'MoveLeader' method to 'Maintenance' Signed-off-by: Gyu-Ho Lee --- clientv3/integration/maintenance_test.go | 53 ++++++++++++++++++++++++ clientv3/maintenance.go | 10 +++++ integration/cluster.go | 2 + 3 files changed, 65 insertions(+) create mode 100644 clientv3/integration/maintenance_test.go diff --git a/clientv3/integration/maintenance_test.go b/clientv3/integration/maintenance_test.go new file mode 100644 index 00000000000..e5496406ed4 --- /dev/null +++ b/clientv3/integration/maintenance_test.go @@ -0,0 +1,53 @@ +// Copyright 2017 The etcd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package integration + +import ( + "context" + "testing" + + "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes" + "github.com/coreos/etcd/integration" + "github.com/coreos/etcd/pkg/testutil" +) + +func TestMaintenanceMoveLeader(t *testing.T) { + defer testutil.AfterTest(t) + + clus := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 3}) + defer clus.Terminate(t) + + oldLeadIdx := clus.WaitLeader(t) + targetIdx := (oldLeadIdx + 1) % 3 + target := uint64(clus.Members[targetIdx].ID()) + + cli := clus.Client(targetIdx) + _, err := cli.MoveLeader(context.Background(), target) + if err != rpctypes.ErrNotLeader { + t.Fatalf("error expected %v, got %v", rpctypes.ErrNotLeader, err) + } + + cli = clus.Client(oldLeadIdx) + _, err = cli.MoveLeader(context.Background(), target) + if err != nil { + t.Fatal(err) + } + + leadIdx := clus.WaitLeader(t) + lead := uint64(clus.Members[leadIdx].ID()) + if target != lead { + t.Fatalf("new leader expected %d, got %d", target, lead) + } +} diff --git a/clientv3/maintenance.go b/clientv3/maintenance.go index 2a75b7e9c57..236ab261dd9 100644 --- a/clientv3/maintenance.go +++ b/clientv3/maintenance.go @@ -28,6 +28,7 @@ type ( AlarmResponse pb.AlarmResponse AlarmMember pb.AlarmMember StatusResponse pb.StatusResponse + MoveLeaderResponse pb.MoveLeaderResponse ) type Maintenance interface { @@ -51,6 +52,10 @@ type Maintenance interface { // Snapshot provides a reader for a snapshot of a backend. Snapshot(ctx context.Context) (io.ReadCloser, error) + + // MoveLeader requests current leader to transfer its leadership to the transferee. + // Request must be made to the leader. + MoveLeader(ctx context.Context, transfereeID uint64) (*MoveLeaderResponse, error) } type maintenance struct { @@ -180,3 +185,8 @@ func (m *maintenance) Snapshot(ctx context.Context) (io.ReadCloser, error) { }() return pr, nil } + +func (m *maintenance) MoveLeader(ctx context.Context, transfereeID uint64) (*MoveLeaderResponse, error) { + resp, err := m.remote.MoveLeader(ctx, &pb.MoveLeaderRequest{TargetID: transfereeID}, grpc.FailFast(false)) + return (*MoveLeaderResponse)(resp), toErr(ctx, err) +} diff --git a/integration/cluster.go b/integration/cluster.go index 8aa56e06aef..35223cdd2d7 100644 --- a/integration/cluster.go +++ b/integration/cluster.go @@ -578,6 +578,8 @@ func (m *member) electionTimeout() time.Duration { return time.Duration(m.s.Cfg.ElectionTicks) * time.Millisecond } +func (m *member) ID() types.ID { return m.s.ID() } + func (m *member) DropConnections() { m.grpcBridge.Reset() } func (m *member) PauseConnections() { m.grpcBridge.Pause() } func (m *member) UnpauseConnections() { m.grpcBridge.Unpause() } From 6e9b776fce25807b75c2203cf424deac5ece7d9d Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Jun 2017 13:05:12 -0700 Subject: [PATCH 09/10] etcdctl/ctlv3: add 'move-leader' command Signed-off-by: Gyu-Ho Lee --- etcdctl/README.md | 23 ++++++ etcdctl/ctlv3/command/move_leader_command.go | 87 ++++++++++++++++++++ etcdctl/ctlv3/command/printer.go | 7 +- etcdctl/ctlv3/command/printer_simple.go | 5 ++ etcdctl/ctlv3/ctl.go | 1 + 5 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 etcdctl/ctlv3/command/move_leader_command.go diff --git a/etcdctl/README.md b/etcdctl/README.md index 84ad1dce289..948617d1a57 100644 --- a/etcdctl/README.md +++ b/etcdctl/README.md @@ -805,6 +805,29 @@ Prints a line of JSON encoding the database hash, revision, total keys, and size +----------+----------+------------+------------+ ``` +### MOVE-LEADER \ + +MOVE-LEADER transfers leadership from the leader to another member in the cluster. + +#### Example + +```bash +# to choose transferee +transferee_id=$(./etcdctl \ + --endpoints localhost:12379,localhost:22379,localhost:32379 \ + endpoint status | grep -m 1 "false" | awk -F', ' '{print $2}') +echo ${transferee_id} +# c89feb932daef420 + +# endpoints should include leader node +./etcdctl --endpoints ${transferee_ep} move-leader ${transferee_id} +# Error: no leader endpoint given at [localhost:22379 localhost:32379] + +# request to leader with target node ID +./etcdctl --endpoints ${leader_ep} move-leader ${transferee_id} +# Leadership transferred from 45ddc0e800e20b93 to c89feb932daef420 +``` + ## Concurrency commands ### LOCK \ [command arg1 arg2 ...] diff --git a/etcdctl/ctlv3/command/move_leader_command.go b/etcdctl/ctlv3/command/move_leader_command.go new file mode 100644 index 00000000000..3bd44255ef8 --- /dev/null +++ b/etcdctl/ctlv3/command/move_leader_command.go @@ -0,0 +1,87 @@ +// Copyright 2017 The etcd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package command + +import ( + "fmt" + "strconv" + "time" + + "github.com/coreos/etcd/clientv3" + "github.com/spf13/cobra" +) + +// NewMoveLeaderCommand returns the cobra command for "move-leader". +func NewMoveLeaderCommand() *cobra.Command { + cmd := &cobra.Command{ + Use: "move-leader ", + Short: "Transfers leadership to another etcd cluster member.", + Run: transferLeadershipCommandFunc, + } + return cmd +} + +// transferLeadershipCommandFunc executes the "compaction" command. +func transferLeadershipCommandFunc(cmd *cobra.Command, args []string) { + if len(args) != 1 { + ExitWithError(ExitBadArgs, fmt.Errorf("move-leader command needs 1 argument")) + } + target, err := strconv.ParseUint(args[0], 16, 64) + if err != nil { + ExitWithError(ExitBadArgs, err) + } + + c := mustClientFromCmd(cmd) + eps := c.Endpoints() + c.Close() + + ctx, cancel := commandCtx(cmd) + + // find current leader + var leaderCli *clientv3.Client + var leaderID uint64 + for _, ep := range eps { + cli, err := clientv3.New(clientv3.Config{ + Endpoints: []string{ep}, + DialTimeout: 3 * time.Second, + }) + if err != nil { + ExitWithError(ExitError, err) + } + resp, err := cli.Status(ctx, ep) + if err != nil { + ExitWithError(ExitError, err) + } + + if resp.Header.GetMemberId() == resp.Leader { + leaderCli = cli + leaderID = resp.Leader + break + } + cli.Close() + } + if leaderCli == nil { + ExitWithError(ExitBadArgs, fmt.Errorf("no leader endpoint given at %v", eps)) + } + + var resp *clientv3.MoveLeaderResponse + resp, err = leaderCli.MoveLeader(ctx, target) + cancel() + if err != nil { + ExitWithError(ExitError, err) + } + + display.MoveLeader(leaderID, target, *resp) +} diff --git a/etcdctl/ctlv3/command/printer.go b/etcdctl/ctlv3/command/printer.go index ad29e75cd1b..b84dcda74a2 100644 --- a/etcdctl/ctlv3/command/printer.go +++ b/etcdctl/ctlv3/command/printer.go @@ -43,6 +43,7 @@ type printer interface { MemberList(v3.MemberListResponse) EndpointStatus([]epStatus) + MoveLeader(leader, target uint64, r v3.MoveLeaderResponse) Alarm(v3.AlarmResponse) DBStatus(dbstatus) @@ -104,7 +105,9 @@ func (p *printerRPC) MemberUpdate(id uint64, r v3.MemberUpdateResponse) { } func (p *printerRPC) MemberList(r v3.MemberListResponse) { p.p((*pb.MemberListResponse)(&r)) } func (p *printerRPC) Alarm(r v3.AlarmResponse) { p.p((*pb.AlarmResponse)(&r)) } - +func (p *printerRPC) MoveLeader(leader, target uint64, r v3.MoveLeaderResponse) { + p.p((*pb.MoveLeaderResponse)(&r)) +} func (p *printerRPC) RoleAdd(_ string, r v3.AuthRoleAddResponse) { p.p((*pb.AuthRoleAddResponse)(&r)) } func (p *printerRPC) RoleGet(_ string, r v3.AuthRoleGetResponse) { p.p((*pb.AuthRoleGetResponse)(&r)) } func (p *printerRPC) RoleDelete(_ string, r v3.AuthRoleDeleteResponse) { @@ -145,6 +148,8 @@ func newPrinterUnsupported(n string) printer { func (p *printerUnsupported) EndpointStatus([]epStatus) { p.p(nil) } func (p *printerUnsupported) DBStatus(dbstatus) { p.p(nil) } +func (p *printerUnsupported) MoveLeader(leader, target uint64, r v3.MoveLeaderResponse) { p.p(nil) } + func makeMemberListTable(r v3.MemberListResponse) (hdr []string, rows [][]string) { hdr = []string{"ID", "Status", "Name", "Peer Addrs", "Client Addrs"} for _, m := range r.Members { diff --git a/etcdctl/ctlv3/command/printer_simple.go b/etcdctl/ctlv3/command/printer_simple.go index baa79e23d7c..00dda47f773 100644 --- a/etcdctl/ctlv3/command/printer_simple.go +++ b/etcdctl/ctlv3/command/printer_simple.go @@ -20,6 +20,7 @@ import ( v3 "github.com/coreos/etcd/clientv3" pb "github.com/coreos/etcd/etcdserver/etcdserverpb" + "github.com/coreos/etcd/pkg/types" ) type simplePrinter struct { @@ -142,6 +143,10 @@ func (s *simplePrinter) DBStatus(ds dbstatus) { } } +func (s *simplePrinter) MoveLeader(leader, target uint64, r v3.MoveLeaderResponse) { + fmt.Printf("Leadership transferred from %s to %s\n", types.ID(leader), types.ID(target)) +} + func (s *simplePrinter) RoleAdd(role string, r v3.AuthRoleAddResponse) { fmt.Printf("Role %s created\n", role) } diff --git a/etcdctl/ctlv3/ctl.go b/etcdctl/ctlv3/ctl.go index 92e715d97d5..2ca2b409622 100644 --- a/etcdctl/ctlv3/ctl.go +++ b/etcdctl/ctlv3/ctl.go @@ -69,6 +69,7 @@ func init() { command.NewAlarmCommand(), command.NewDefragCommand(), command.NewEndpointCommand(), + command.NewMoveLeaderCommand(), command.NewWatchCommand(), command.NewVersionCommand(), command.NewLeaseCommand(), From d4289588ac534e175cf2ec5c4c9b1b1d5ac35a31 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Fri, 23 Jun 2017 13:17:01 -0700 Subject: [PATCH 10/10] e2e: test 'move-leader' command Signed-off-by: Gyu-Ho Lee --- e2e/ctl_v3_move_leader_test.go | 92 ++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 e2e/ctl_v3_move_leader_test.go diff --git a/e2e/ctl_v3_move_leader_test.go b/e2e/ctl_v3_move_leader_test.go new file mode 100644 index 00000000000..ec2f134d5e3 --- /dev/null +++ b/e2e/ctl_v3_move_leader_test.go @@ -0,0 +1,92 @@ +// Copyright 2017 The etcd Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package e2e + +import ( + "context" + "fmt" + "os" + "testing" + "time" + + "github.com/coreos/etcd/clientv3" + "github.com/coreos/etcd/pkg/testutil" + "github.com/coreos/etcd/pkg/types" +) + +func TestCtlV3MoveLeader(t *testing.T) { + defer testutil.AfterTest(t) + + epc := setupEtcdctlTest(t, &configNoTLS, true) + defer func() { + if errC := epc.Close(); errC != nil { + t.Fatalf("error closing etcd processes (%v)", errC) + } + }() + + var leadIdx int + var leaderID uint64 + var transferee uint64 + for i, ep := range epc.grpcEndpoints() { + cli, err := clientv3.New(clientv3.Config{ + Endpoints: []string{ep}, + DialTimeout: 3 * time.Second, + }) + if err != nil { + t.Fatal(err) + } + resp, err := cli.Status(context.Background(), ep) + if err != nil { + t.Fatal(err) + } + cli.Close() + + if resp.Header.GetMemberId() == resp.Leader { + leadIdx = i + leaderID = resp.Leader + } else { + transferee = resp.Header.GetMemberId() + } + } + + os.Setenv("ETCDCTL_API", "3") + defer os.Unsetenv("ETCDCTL_API") + cx := ctlCtx{ + t: t, + cfg: configNoTLS, + dialTimeout: 7 * time.Second, + epc: epc, + } + + tests := []struct { + prefixes []string + expect string + }{ + { // request to non-leader + cx.prefixArgs([]string{cx.epc.grpcEndpoints()[(leadIdx+1)%3]}), + "no leader endpoint given at ", + }, + { // request to leader + cx.prefixArgs([]string{cx.epc.grpcEndpoints()[leadIdx]}), + fmt.Sprintf("Leadership transferred from %s to %s", types.ID(leaderID), types.ID(transferee)), + }, + } + for i, tc := range tests { + cmdArgs := append(tc.prefixes, "move-leader", types.ID(transferee).String()) + if err := spawnWithExpect(cmdArgs, tc.expect); err != nil { + t.Fatalf("#%d: %v", i, err) + } + } +}