make lock/unlock optional

This commit is contained in:
Chris Lu 2020-04-23 03:50:05 -07:00
parent 57ec7f2ba9
commit bdc337a719
3 changed files with 147 additions and 252 deletions

View file

@ -31,8 +31,6 @@ service Seaweed {
}
rpc ReleaseAdminToken (ReleaseAdminTokenRequest) returns (ReleaseAdminTokenResponse) {
}
rpc VerifyAdminToken (VerifyAdminTokenRequest) returns (VerifyAdminTokenResponse) {
}
}
@ -297,11 +295,3 @@ message ReleaseAdminTokenRequest {
}
message ReleaseAdminTokenResponse {
}
message VerifyAdminTokenRequest {
int64 token = 1;
int64 lock_time = 2;
}
message VerifyAdminTokenResponse {
bool is_valid = 1;
}

View file

@ -48,8 +48,6 @@ It has these top-level messages:
LeaseAdminTokenResponse
ReleaseAdminTokenRequest
ReleaseAdminTokenResponse
VerifyAdminTokenRequest
VerifyAdminTokenResponse
*/
package master_pb
@ -1559,46 +1557,6 @@ func (m *ReleaseAdminTokenResponse) String() string { return proto.Co
func (*ReleaseAdminTokenResponse) ProtoMessage() {}
func (*ReleaseAdminTokenResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{38} }
type VerifyAdminTokenRequest struct {
Token int64 `protobuf:"varint,1,opt,name=token" json:"token,omitempty"`
LockTime int64 `protobuf:"varint,2,opt,name=lock_time,json=lockTime" json:"lock_time,omitempty"`
}
func (m *VerifyAdminTokenRequest) Reset() { *m = VerifyAdminTokenRequest{} }
func (m *VerifyAdminTokenRequest) String() string { return proto.CompactTextString(m) }
func (*VerifyAdminTokenRequest) ProtoMessage() {}
func (*VerifyAdminTokenRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{39} }
func (m *VerifyAdminTokenRequest) GetToken() int64 {
if m != nil {
return m.Token
}
return 0
}
func (m *VerifyAdminTokenRequest) GetLockTime() int64 {
if m != nil {
return m.LockTime
}
return 0
}
type VerifyAdminTokenResponse struct {
IsValid bool `protobuf:"varint,1,opt,name=is_valid,json=isValid" json:"is_valid,omitempty"`
}
func (m *VerifyAdminTokenResponse) Reset() { *m = VerifyAdminTokenResponse{} }
func (m *VerifyAdminTokenResponse) String() string { return proto.CompactTextString(m) }
func (*VerifyAdminTokenResponse) ProtoMessage() {}
func (*VerifyAdminTokenResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{40} }
func (m *VerifyAdminTokenResponse) GetIsValid() bool {
if m != nil {
return m.IsValid
}
return false
}
func init() {
proto.RegisterType((*Heartbeat)(nil), "master_pb.Heartbeat")
proto.RegisterType((*HeartbeatResponse)(nil), "master_pb.HeartbeatResponse")
@ -1642,8 +1600,6 @@ func init() {
proto.RegisterType((*LeaseAdminTokenResponse)(nil), "master_pb.LeaseAdminTokenResponse")
proto.RegisterType((*ReleaseAdminTokenRequest)(nil), "master_pb.ReleaseAdminTokenRequest")
proto.RegisterType((*ReleaseAdminTokenResponse)(nil), "master_pb.ReleaseAdminTokenResponse")
proto.RegisterType((*VerifyAdminTokenRequest)(nil), "master_pb.VerifyAdminTokenRequest")
proto.RegisterType((*VerifyAdminTokenResponse)(nil), "master_pb.VerifyAdminTokenResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
@ -1670,7 +1626,6 @@ type SeaweedClient interface {
ListMasterClients(ctx context.Context, in *ListMasterClientsRequest, opts ...grpc.CallOption) (*ListMasterClientsResponse, error)
LeaseAdminToken(ctx context.Context, in *LeaseAdminTokenRequest, opts ...grpc.CallOption) (*LeaseAdminTokenResponse, error)
ReleaseAdminToken(ctx context.Context, in *ReleaseAdminTokenRequest, opts ...grpc.CallOption) (*ReleaseAdminTokenResponse, error)
VerifyAdminToken(ctx context.Context, in *VerifyAdminTokenRequest, opts ...grpc.CallOption) (*VerifyAdminTokenResponse, error)
}
type seaweedClient struct {
@ -1842,15 +1797,6 @@ func (c *seaweedClient) ReleaseAdminToken(ctx context.Context, in *ReleaseAdminT
return out, nil
}
func (c *seaweedClient) VerifyAdminToken(ctx context.Context, in *VerifyAdminTokenRequest, opts ...grpc.CallOption) (*VerifyAdminTokenResponse, error) {
out := new(VerifyAdminTokenResponse)
err := grpc.Invoke(ctx, "/master_pb.Seaweed/VerifyAdminToken", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Seaweed service
type SeaweedServer interface {
@ -1867,7 +1813,6 @@ type SeaweedServer interface {
ListMasterClients(context.Context, *ListMasterClientsRequest) (*ListMasterClientsResponse, error)
LeaseAdminToken(context.Context, *LeaseAdminTokenRequest) (*LeaseAdminTokenResponse, error)
ReleaseAdminToken(context.Context, *ReleaseAdminTokenRequest) (*ReleaseAdminTokenResponse, error)
VerifyAdminToken(context.Context, *VerifyAdminTokenRequest) (*VerifyAdminTokenResponse, error)
}
func RegisterSeaweedServer(s *grpc.Server, srv SeaweedServer) {
@ -2124,24 +2069,6 @@ func _Seaweed_ReleaseAdminToken_Handler(srv interface{}, ctx context.Context, de
return interceptor(ctx, in, info, handler)
}
func _Seaweed_VerifyAdminToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyAdminTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SeaweedServer).VerifyAdminToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/master_pb.Seaweed/VerifyAdminToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SeaweedServer).VerifyAdminToken(ctx, req.(*VerifyAdminTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Seaweed_serviceDesc = grpc.ServiceDesc{
ServiceName: "master_pb.Seaweed",
HandlerType: (*SeaweedServer)(nil),
@ -2190,10 +2117,6 @@ var _Seaweed_serviceDesc = grpc.ServiceDesc{
MethodName: "ReleaseAdminToken",
Handler: _Seaweed_ReleaseAdminToken_Handler,
},
{
MethodName: "VerifyAdminToken",
Handler: _Seaweed_VerifyAdminToken_Handler,
},
},
Streams: []grpc.StreamDesc{
{
@ -2215,154 +2138,150 @@ var _Seaweed_serviceDesc = grpc.ServiceDesc{
func init() { proto.RegisterFile("master.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 2380 bytes of a gzipped FileDescriptorProto
// 2320 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x59, 0x4b, 0x6f, 0x1c, 0xc7,
0x11, 0xd6, 0xee, 0xf2, 0xb1, 0x5b, 0xcb, 0x7d, 0x35, 0x29, 0x6a, 0xb9, 0xb2, 0x44, 0x6a, 0x6c,
0xc3, 0x94, 0xe2, 0x30, 0x0e, 0xed, 0x20, 0x46, 0x1c, 0xc3, 0xa0, 0x28, 0x5a, 0x21, 0x44, 0xd2,
0xd2, 0x90, 0x91, 0x01, 0x03, 0xc1, 0xb8, 0x77, 0xa6, 0x49, 0x35, 0x38, 0xaf, 0x4c, 0xf7, 0x52,
0x5c, 0xe7, 0x12, 0x20, 0xc7, 0x9c, 0x82, 0x1c, 0xf2, 0x17, 0x72, 0xc9, 0x29, 0x39, 0xfb, 0x92,
0xff, 0x90, 0x1f, 0x92, 0xab, 0x2f, 0x41, 0x3f, 0x66, 0xa6, 0x67, 0x76, 0x97, 0x34, 0x0d, 0x38,
0x80, 0x6e, 0xd3, 0x55, 0xd5, 0xd5, 0xd5, 0x5f, 0x75, 0xd7, 0xa3, 0x07, 0x96, 0x02, 0xcc, 0x38,
0x49, 0xb6, 0xe2, 0x24, 0xe2, 0x11, 0x6a, 0xa8, 0x91, 0x13, 0x0f, 0xad, 0x3f, 0x2f, 0x40, 0xe3,
0x37, 0x04, 0x27, 0x7c, 0x48, 0x30, 0x47, 0x6d, 0xa8, 0xd2, 0xb8, 0x5f, 0xd9, 0xa8, 0x6c, 0x36,
0xec, 0x2a, 0x8d, 0x11, 0x82, 0xb9, 0x38, 0x4a, 0x78, 0xbf, 0xba, 0x51, 0xd9, 0x6c, 0xd9, 0xf2,
0x1b, 0xdd, 0x03, 0x88, 0x47, 0x43, 0x9f,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
0xd7, 0xa0, 0x3f, 0xeb, 0x18, 0x88, 0xfa, 0xe0, 0x89, 0x57, 0x6f, 0xd9, 0x55, 0xdf, 0xe3, 0xe7,
0x8f, 0x43, 0x22, 0xde, 0x75, 0xce, 0x16, 0xcf, 0xe8, 0x01, 0x80, 0x1b, 0x07, 0x01, 0x71, 0xf9,
0x44, 0xf5, 0x92, 0x86, 0x84, 0x9f, 0x4f, 0x71, 0xe4, 0xf3, 0xd2, 0x30, 0x67, 0x37, 0xb8, 0x44,
0x56, 0x85, 0x87, 0xb0, 0x24, 0xd3, 0xa7, 0x0c, 0x64, 0x55, 0x68, 0x4a, 0x99, 0x34, 0xf9, 0x00,
0x90, 0xde, 0x26, 0xc3, 0x71, 0x66, 0xb8, 0x20, 0x0c, 0xbb, 0x4a, 0xf3, 0x64, 0xac, 0xad, 0xef,
0x42, 0x23, 0x25, 0xd8, 0x73, 0xe2, 0x28, 0x18, 0x8b, 0x42, 0x51, 0xb7, 0xeb, 0x5c, 0xf0, 0x65,
0x14, 0x8c, 0xd1, 0xff, 0x41, 0x2f, 0x25, 0x49, 0xe0, 0xbb, 0xd8, 0x49, 0x02, 0xec, 0x92, 0x90,
0x44, 0xba, 0x66, 0x74, 0x95, 0xe2, 0x85, 0x96, 0xa3, 0x3e, 0x2c, 0x5e, 0x90, 0x94, 0xf2, 0xd7,
0x6a, 0x08, 0x13, 0x3d, 0x44, 0x5d, 0xa8, 0x31, 0x16, 0xf4, 0x41, 0x48, 0xf9, 0x23, 0x7a, 0x04,
0x5d, 0x37, 0x0e, 0x13, 0xec, 0x32, 0x27, 0x25, 0x17, 0xbe, 0x98, 0xd4, 0x14, 0xea, 0x8e, 0x92,
0xdb, 0x4a, 0xcc, 0x5f, 0x27, 0x8c, 0x3d, 0xff, 0xd4, 0x27, 0x9e, 0x83, 0x99, 0x4a, 0xb6, 0x38,
0xb8, 0x35, 0xbb, 0xab, 0x35, 0x3b, 0x4c, 0xa6, 0x19, 0x6d, 0xc1, 0x72,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 0x22,
0xf3, 0xe3, 0xdf, 0x95, 0xf5, 0x77, 0xf0, 0xe8, 0x07, 0x58, 0x66, 0x0b, 0x7e, 0x03, 0xbd, 0x89,
0x4a, 0x87, 0x4c, 0x48, 0x67, 0x15, 0xd1, 0xc1, 0xbb, 0x57, 0x1b, 0x65, 0x2b, 0x7c, 0x0d, 0x9d,
0x52, 0x61, 0x42, 0x05, 0x28, 0xa6, 0xd6, 0x98, 0x81, 0x75, 0x95, 0x89, 0x19, 0xfd, 0x44, 0xd1,
0x28, 0x44, 0x3f, 0xab, 0x86, 0x15, 0xa2, 0x9f, 0x59, 0x77, 0xac, 0x5b, 0xc3, 0x05, 0xf1, 0xb3,
0xf6, 0xa3, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x7a, 0x09, 0x55, 0xbc, 0x1d, 0x00, 0x00,
}

View file

@ -18,8 +18,6 @@ Shell
When shell lock,
* lease an admin token (lockTime, token)
* start a goroutine to renew the admin token periodically
For later volume operations, send (lockTime, token) to volume servers for exclusive access
* need to pause renewal a few seconds, to prevent race condition
When shell unlock
* stop the renewal goroutine
@ -48,13 +46,9 @@ When master receives the lease/renew request from shell
When master receives the release lock request from shell
set the lastLockTime to zero
When master receives the verfication request from volume servers
return secret+lockTime == token && lockTime == lastLockTime
Volume
------
When receives (lockTime, token), ask the master whether this is valid
The volume server does not need to verify.
This makes the lock/unlock optional, similar to what golang code usually does.
*/
@ -97,11 +91,3 @@ func (ms *MasterServer) ReleaseAdminToken(ctx context.Context, req *master_pb.Re
}
return resp, nil
}
func (ms *MasterServer) VerifyAdminToken(ctx context.Context, req *master_pb.VerifyAdminTokenRequest) (*master_pb.VerifyAdminTokenResponse, error) {
resp := &master_pb.VerifyAdminTokenResponse{}
if ms.isValidToken(time.Unix(0, req.LockTime), req.Token) {
resp.IsValid = true
}
return resp, nil
}