mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add exclusive lock library on shell
This commit is contained in:
parent
77873b832b
commit
30ee4f3291
|
@ -287,10 +287,8 @@ message LeaseAdminTokenRequest {
|
||||||
int64 previous_lock_time = 2;
|
int64 previous_lock_time = 2;
|
||||||
}
|
}
|
||||||
message LeaseAdminTokenResponse {
|
message LeaseAdminTokenResponse {
|
||||||
bool is_allowed = 1;
|
int64 token = 1;
|
||||||
string error = 2;
|
int64 lock_ts_ns = 2;
|
||||||
int64 lock_ts_ns = 3;
|
|
||||||
int64 token = 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message ReleaseAdminTokenRequest {
|
message ReleaseAdminTokenRequest {
|
||||||
|
|
|
@ -1504,10 +1504,8 @@ func (m *LeaseAdminTokenRequest) GetPreviousLockTime() int64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
type LeaseAdminTokenResponse struct {
|
type LeaseAdminTokenResponse struct {
|
||||||
IsAllowed bool `protobuf:"varint,1,opt,name=is_allowed,json=isAllowed" json:"is_allowed,omitempty"`
|
Token int64 `protobuf:"varint,1,opt,name=token" json:"token,omitempty"`
|
||||||
Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"`
|
LockTsNs int64 `protobuf:"varint,2,opt,name=lock_ts_ns,json=lockTsNs" json:"lock_ts_ns,omitempty"`
|
||||||
LockTsNs int64 `protobuf:"varint,3,opt,name=lock_ts_ns,json=lockTsNs" json:"lock_ts_ns,omitempty"`
|
|
||||||
Token int64 `protobuf:"varint,4,opt,name=token" json:"token,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *LeaseAdminTokenResponse) Reset() { *m = LeaseAdminTokenResponse{} }
|
func (m *LeaseAdminTokenResponse) Reset() { *m = LeaseAdminTokenResponse{} }
|
||||||
|
@ -1515,18 +1513,11 @@ func (m *LeaseAdminTokenResponse) String() string { return proto.Comp
|
||||||
func (*LeaseAdminTokenResponse) ProtoMessage() {}
|
func (*LeaseAdminTokenResponse) ProtoMessage() {}
|
||||||
func (*LeaseAdminTokenResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{36} }
|
func (*LeaseAdminTokenResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{36} }
|
||||||
|
|
||||||
func (m *LeaseAdminTokenResponse) GetIsAllowed() bool {
|
func (m *LeaseAdminTokenResponse) GetToken() int64 {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
return m.IsAllowed
|
return m.Token
|
||||||
}
|
}
|
||||||
return false
|
return 0
|
||||||
}
|
|
||||||
|
|
||||||
func (m *LeaseAdminTokenResponse) GetError() string {
|
|
||||||
if m != nil {
|
|
||||||
return m.Error
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *LeaseAdminTokenResponse) GetLockTsNs() int64 {
|
func (m *LeaseAdminTokenResponse) GetLockTsNs() int64 {
|
||||||
|
@ -1536,13 +1527,6 @@ func (m *LeaseAdminTokenResponse) GetLockTsNs() int64 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *LeaseAdminTokenResponse) GetToken() int64 {
|
|
||||||
if m != nil {
|
|
||||||
return m.Token
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type ReleaseAdminTokenRequest struct {
|
type ReleaseAdminTokenRequest struct {
|
||||||
PreviousToken int64 `protobuf:"varint,1,opt,name=previous_token,json=previousToken" json:"previous_token,omitempty"`
|
PreviousToken int64 `protobuf:"varint,1,opt,name=previous_token,json=previousToken" json:"previous_token,omitempty"`
|
||||||
PreviousLockTime int64 `protobuf:"varint,2,opt,name=previous_lock_time,json=previousLockTime" json:"previous_lock_time,omitempty"`
|
PreviousLockTime int64 `protobuf:"varint,2,opt,name=previous_lock_time,json=previousLockTime" json:"previous_lock_time,omitempty"`
|
||||||
|
@ -2231,156 +2215,154 @@ var _Seaweed_serviceDesc = grpc.ServiceDesc{
|
||||||
func init() { proto.RegisterFile("master.proto", fileDescriptor0) }
|
func init() { proto.RegisterFile("master.proto", fileDescriptor0) }
|
||||||
|
|
||||||
var fileDescriptor0 = []byte{
|
var fileDescriptor0 = []byte{
|
||||||
// 2409 bytes of a gzipped FileDescriptorProto
|
// 2380 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x59, 0x4b, 0x6f, 0x1c, 0xc7,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x59, 0x4b, 0x6f, 0x1c, 0xc7,
|
||||||
0xf1, 0xd7, 0xec, 0xf2, 0xb1, 0x5b, 0xcb, 0x5d, 0xee, 0x36, 0x29, 0x6a, 0xb9, 0x96, 0x44, 0x6a,
|
0x11, 0xd6, 0xee, 0xf2, 0xb1, 0x5b, 0xcb, 0x7d, 0x35, 0x29, 0x6a, 0xb9, 0xb2, 0x44, 0x6a, 0x6c,
|
||||||
0x6c, 0xc3, 0x94, 0xfe, 0xfe, 0x33, 0x0e, 0xed, 0x20, 0x46, 0x1c, 0xc3, 0xa0, 0x28, 0x5a, 0x21,
|
0xc3, 0x94, 0xe2, 0x30, 0x0e, 0xed, 0x20, 0x46, 0x1c, 0xc3, 0xa0, 0x28, 0x5a, 0x21, 0x44, 0xd2,
|
||||||
0x44, 0xd2, 0xd2, 0x90, 0x91, 0x01, 0x03, 0xc1, 0xb8, 0x39, 0xd3, 0xa4, 0x1a, 0x9c, 0x57, 0xa6,
|
0xd2, 0x90, 0x91, 0x01, 0x03, 0xc1, 0xb8, 0x77, 0xa6, 0x49, 0x35, 0x38, 0xaf, 0x4c, 0xf7, 0x52,
|
||||||
0x7b, 0x29, 0xae, 0x73, 0x09, 0x92, 0x63, 0x4e, 0x41, 0x0e, 0xf9, 0x0a, 0xb9, 0xe4, 0x94, 0x9c,
|
0x5c, 0xe7, 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8d, 0xee, 0x01, 0x24, 0xc3, 0x93, 0x80, 0x7a, 0xee, 0x30, 0x0d, 0xfa, 0x75, 0x29,
|
0x1b, 0xdd, 0x03, 0x88, 0x47, 0x43, 0x9f, 0xba, 0xce, 0x28, 0xf1, 0xfb, 0x35, 0x29, 0xdb, 0x50,
|
||||||
0xdb, 0x54, 0x94, 0x5f, 0xa7, 0x01, 0xda, 0x80, 0x6e, 0x88, 0x2f, 0xdd, 0x8b, 0x38, 0x18, 0x86,
|
0x94, 0xdf, 0x26, 0x3e, 0xda, 0x84, 0x6e, 0x80, 0x2f, 0x9d, 0x8b, 0xc8, 0x1f, 0x05, 0xc4, 0x71,
|
||||||
0xc4, 0xf5, 0xe2, 0x61, 0xc4, 0xfb, 0x33, 0x72, 0x7a, 0x27, 0xc4, 0x97, 0x2f, 0x25, 0x79, 0x47,
|
0xa3, 0x51, 0xc8, 0xfb, 0x73, 0x72, 0x7a, 0x3b, 0xc0, 0x97, 0x2f, 0x25, 0x79, 0x57, 0x50, 0xd1,
|
||||||
0x50, 0xd1, 0xba, 0xb0, 0xea, 0xd2, 0x3d, 0xa5, 0x01, 0x71, 0xcf, 0xc9, 0xa8, 0x3f, 0xbb, 0x6e,
|
0x86, 0xb0, 0xea, 0xd2, 0x39, 0xa5, 0x3e, 0x71, 0xce, 0xc9, 0xb8, 0x3f, 0xbf, 0x51, 0xd9, 0x9c,
|
||||||
0x6d, 0xcc, 0x38, 0x10, 0xe2, 0xcb, 0xcf, 0x69, 0x40, 0x9e, 0x91, 0x11, 0x5a, 0x83, 0x96, 0x8f,
|
0xb3, 0x21, 0xc0, 0x97, 0x9f, 0x53, 0x9f, 0x3c, 0x23, 0x63, 0xb4, 0x0e, 0x4d, 0x0f, 0x73, 0xec,
|
||||||
0x39, 0x76, 0x3d, 0x12, 0x71, 0x92, 0xf6, 0xe7, 0xe4, 0x5a, 0x20, 0x48, 0x3b, 0x92, 0x22, 0xec,
|
0xb8, 0x24, 0xe4, 0x24, 0xe9, 0x2f, 0xc8, 0xb5, 0x40, 0x90, 0x76, 0x25, 0x45, 0xd8, 0x97, 0x60,
|
||||||
0x4b, 0xb1, 0x77, 0xde, 0x9f, 0x97, 0x1c, 0xf9, 0x2d, 0xec, 0xc3, 0x7e, 0x48, 0x23, 0x57, 0x5a,
|
0xf7, 0xbc, 0xbf, 0x28, 0x39, 0xf2, 0x5b, 0xd8, 0x87, 0xbd, 0x80, 0x86, 0x8e, 0xb4, 0xbc, 0x2e,
|
||||||
0xde, 0x90, 0x4b, 0x37, 0x25, 0xe5, 0xb9, 0x30, 0xff, 0x53, 0x98, 0x57, 0xb6, 0xb1, 0x7e, 0x73,
|
0x97, 0x6e, 0x48, 0xca, 0x73, 0x61, 0xfe, 0xa7, 0xb0, 0xa8, 0x6c, 0x63, 0xfd, 0xc6, 0x46, 0x6d,
|
||||||
0xbd, 0xbe, 0xd1, 0xda, 0x7a, 0x7b, 0x33, 0x47, 0x63, 0x53, 0x99, 0xb7, 0x17, 0x9d, 0xc6, 0x69,
|
0xb3, 0xb9, 0xfd, 0xf6, 0x56, 0x86, 0xc6, 0x96, 0x32, 0x6f, 0x3f, 0x3c, 0x8d, 0x92, 0x00, 0x73,
|
||||||
0x88, 0x39, 0x8d, 0xa3, 0x03, 0xc2, 0x18, 0x3e, 0x23, 0x4e, 0x36, 0x07, 0xed, 0x41, 0x2b, 0x22,
|
0x1a, 0x85, 0x87, 0x84, 0x31, 0x7c, 0x46, 0xec, 0x74, 0x0e, 0xda, 0x87, 0x66, 0x48, 0x5e, 0x3b,
|
||||||
0xaf, 0xdd, 0x4c, 0x05, 0x48, 0x15, 0x1b, 0x63, 0x2a, 0x8e, 0x5e, 0xc5, 0x29, 0x9f, 0xa0, 0x07,
|
0xa9, 0x0a, 0x90, 0x2a, 0x36, 0x27, 0x54, 0x1c, 0xbf, 0x8a, 0x12, 0x3e, 0x45, 0x0f, 0x84, 0xe4,
|
||||||
0x22, 0xf2, 0xfa, 0xa5, 0x56, 0xf5, 0x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8d, 0xee, 0x03, 0xb8, 0x91, 0xef, 0x13, 0x57, 0x4c, 0xd4,
|
||||||
0x62, 0xa2, 0xde, 0xa4, 0x41, 0x11, 0xf7, 0x53, 0x5e, 0xf9, 0x22, 0x34, 0xcc, 0x38, 0x4d, 0x41,
|
0x9b, 0x34, 0x28, 0xe2, 0x7e, 0xca, 0x2b, 0x9f, 0x87, 0x86, 0x39, 0xbb, 0x21, 0x28, 0x2a, 0x2a,
|
||||||
0x51, 0x51, 0xe1, 0x01, 0x2c, 0x28, 0xf7, 0x69, 0x01, 0x15, 0x15, 0x5a, 0x8a, 0xa6, 0x44, 0xde,
|
0x3c, 0x80, 0x25, 0xe5, 0x3e, 0x2d, 0xa0, 0xa2, 0x42, 0x53, 0xd1, 0x94, 0xc8, 0xfb, 0x80, 0xd2,
|
||||||
0x07, 0x94, 0x1d, 0x93, 0x93, 0x51, 0x2e, 0x38, 0x27, 0x05, 0xbb, 0x9a, 0xf3, 0x78, 0x94, 0x49,
|
0x63, 0x32, 0x1c, 0x67, 0x82, 0x0b, 0x52, 0xb0, 0xab, 0x39, 0x8f, 0xc7, 0xa9, 0xf4, 0x5d, 0x68,
|
||||||
0xbf, 0x05, 0xcd, 0x94, 0x60, 0xdf, 0x8d, 0xa3, 0x60, 0x24, 0x03, 0x45, 0xc3, 0x69, 0x08, 0xc2,
|
0x24, 0x04, 0x7b, 0x4e, 0x14, 0xfa, 0x63, 0x19, 0x28, 0xea, 0x76, 0x5d, 0x10, 0xbe, 0x08, 0xfd,
|
||||||
0x17, 0x51, 0x30, 0x42, 0xff, 0x07, 0xbd, 0x94, 0x24, 0x01, 0xf5, 0xb0, 0x9b, 0x04, 0xd8, 0x23,
|
0x31, 0xfa, 0x09, 0xf4, 0x12, 0x12, 0xfb, 0xd4, 0xc5, 0x4e, 0xec, 0x63, 0x97, 0x04, 0x24, 0x4c,
|
||||||
0x21, 0x89, 0xb2, 0x98, 0xd1, 0xd5, 0x8c, 0xe7, 0x19, 0x1d, 0xf5, 0x61, 0xfe, 0x82, 0xa4, 0x4c,
|
0x63, 0x46, 0x57, 0x33, 0x9e, 0xa7, 0x74, 0xd4, 0x87, 0xc5, 0x0b, 0x92, 0x30, 0xb1, 0xad, 0x86,
|
||||||
0x6c, 0xab, 0x29, 0x45, 0xb2, 0x21, 0xea, 0x42, 0x9d, 0xf3, 0xa0, 0x0f, 0x92, 0x2a, 0x3e, 0xd1,
|
0x14, 0x49, 0x87, 0xa8, 0x0b, 0x35, 0xce, 0xfd, 0x3e, 0x48, 0xaa, 0xf8, 0x44, 0x0f, 0xa1, 0xeb,
|
||||||
0x43, 0xe8, 0x7a, 0x71, 0x98, 0x60, 0x8f, 0xbb, 0x29, 0xb9, 0xa0, 0x72, 0x52, 0x4b, 0xb2, 0x17,
|
0x46, 0x41, 0x8c, 0x5d, 0xee, 0x24, 0xe4, 0x82, 0xca, 0x49, 0x4d, 0xc9, 0xee, 0x68, 0xba, 0xad,
|
||||||
0x35, 0xdd, 0xd1, 0x64, 0xb1, 0x9d, 0x30, 0xf6, 0xe9, 0x29, 0x25, 0xbe, 0x8b, 0xb9, 0x76, 0xb6,
|
0xc9, 0x62, 0x3b, 0x41, 0xe4, 0xd1, 0x53, 0x4a, 0x3c, 0x07, 0x73, 0xed, 0x6c, 0x79, 0x71, 0x6b,
|
||||||
0xbc, 0xb8, 0x75, 0xa7, 0x9b, 0x71, 0xb6, 0xb9, 0x72, 0x33, 0xda, 0x84, 0xa5, 0x94, 0x84, 0x31,
|
0x76, 0x37, 0xe5, 0xec, 0x70, 0xe5, 0x66, 0xb4, 0x05, 0xcb, 0x09, 0x09, 0x22, 0x4e, 0x9c, 0xd4,
|
||||||
0x27, 0x6e, 0xe6, 0xec, 0x08, 0x87, 0xa4, 0xdf, 0x96, 0x38, 0xf7, 0x14, 0x4b, 0xfb, 0xf8, 0x10,
|
0xd9, 0x21, 0x0e, 0x48, 0xbf, 0x25, 0x71, 0xee, 0x29, 0x96, 0xf6, 0xf1, 0x11, 0x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33, 0xa9, 0xb3,
|
||||||
0x99, 0xd4, 0x59, 0x4e, 0x49, 0x95, 0x39, 0x9b, 0xbb, 0x6a, 0xc2, 0x8e, 0x94, 0x77, 0xda, 0xc4,
|
0x98, 0x92, 0x4a, 0x73, 0xb6, 0xf6, 0xd4, 0x84, 0x5d, 0x29, 0x6f, 0xb7, 0x88, 0x39, 0x1c, 0x7c,
|
||||||
0x1c, 0x0e, 0xbe, 0x82, 0x76, 0x89, 0x2f, 0xc0, 0x12, 0x09, 0x5c, 0x7b, 0x45, 0x7e, 0x8b, 0xa0,
|
0x05, 0xad, 0x02, 0x5f, 0x80, 0x25, 0x12, 0xb8, 0xf6, 0x8a, 0xfc, 0x16, 0x41, 0x33, 0xc6, 0x09,
|
||||||
0x99, 0xe0, 0x94, 0xf2, 0x91, 0x2e, 0x34, 0xf4, 0x48, 0x84, 0x0a, 0x1d, 0x78, 0xa9, 0xaf, 0x40,
|
0xe5, 0x63, 0x5d, 0x68, 0xe8, 0x91, 0x08, 0x15, 0x3a, 0xf0, 0x52, 0x4f, 0x81, 0xd6, 0xb2, 0x1b,
|
||||||
0x6b, 0x3b, 0x4d, 0x45, 0xd9, 0xf3, 0x99, 0xfd, 0x14, 0x96, 0x9f, 0x11, 0x92, 0xec, 0xc4, 0x51,
|
0x8a, 0xb2, 0xef, 0x31, 0xeb, 0x29, 0xac, 0x3c, 0x23, 0x24, 0xde, 0x8d, 0xc2, 0x90, 0xb8, 0x9c,
|
||||||
0x44, 0x3c, 0x4e, 0x7c, 0x87, 0xfc, 0x76, 0x48, 0x18, 0x17, 0x4b, 0xc8, 0x3b, 0xa1, 0xfd, 0x21,
|
0x78, 0x36, 0xf9, 0xfd, 0x88, 0x30, 0x2e, 0x96, 0x90, 0x77, 0x42, 0xfb, 0x43, 0x7c, 0x8b, 0x28,
|
||||||
0xbe, 0x45, 0x14, 0x38, 0x4b, 0x13, 0xcf, 0x35, 0xca, 0x99, 0x86, 0x20, 0x88, 0x9a, 0xc0, 0x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||
0x58, 0xb0, 0x5c, 0x56, 0xab, 0x33, 0xdd, 0xd7, 0xb0, 0x94, 0xeb, 0x75, 0x03, 0x8d, 0x85, 0x5a,
|
0x45, 0xb5, 0x3a, 0xd3, 0x7d, 0x0d, 0xcb, 0x99, 0x5e, 0xc7, 0xd7, 0x58, 0xa8, 0x05, 0x9a, 0xdb,
|
||||||
0xa0, 0xb5, 0xf5, 0x81, 0x71, 0x06, 0x26, 0xcd, 0xce, 0xaa, 0x27, 0x3f, 0x03, 0xd1, 0xe9, 0x5d,
|
0x1f, 0x18, 0x67, 0x60, 0xda, 0xec, 0xb4, 0x7a, 0xf2, 0x52, 0x10, 0xed, 0xde, 0x45, 0x89, 0xc2,
|
||||||
0x54, 0x28, 0x6c, 0x70, 0x09, 0xdd, 0xaa, 0x98, 0xf0, 0x4d, 0xbe, 0xaa, 0x46, 0xbc, 0x91, 0xcd,
|
0x06, 0x97, 0xd0, 0x2d, 0x8b, 0x09, 0xdf, 0x64, 0xab, 0x6a, 0xc4, 0xeb, 0xe9, 0x4c, 0xf4, 0x73,
|
||||||
0x44, 0x3f, 0x85, 0x66, 0x61, 0x48, 0x4d, 0x1a, 0xb2, 0x54, 0x32, 0x44, 0xaf, 0x55, 0x48, 0x89,
|
0x68, 0xe4, 0x86, 0x54, 0xa5, 0x21, 0xcb, 0x05, 0x43, 0xf4, 0x5a, 0xb9, 0x94, 0x38, 0xfb, 0x24,
|
||||||
0xb3, 0x4f, 0xd2, 0x34, 0x4e, 0x75, 0x34, 0x52, 0x03, 0xfb, 0x13, 0x68, 0xfc, 0x60, 0xef, 0xda,
|
0x49, 0xa2, 0x44, 0x47, 0x23, 0x35, 0xb0, 0x3e, 0x81, 0xfa, 0x0f, 0xf6, 0xae, 0xf5, 0xcf, 0x2a,
|
||||||
0xff, 0xa8, 0x41, 0x7b, 0x9b, 0x31, 0x7a, 0x16, 0x65, 0x2e, 0x58, 0x86, 0x59, 0x95, 0x77, 0x54,
|
0xb4, 0x76, 0x18, 0xa3, 0x67, 0x61, 0xea, 0x82, 0x15, 0x98, 0x57, 0x79, 0x47, 0x15, 0x02, 0x6a,
|
||||||
0x21, 0xa0, 0x06, 0x68, 0x1d, 0x5a, 0x3a, 0xa8, 0x19, 0xd0, 0x9b, 0xa4, 0x6b, 0xe3, 0xa5, 0x0e,
|
0x80, 0x36, 0xa0, 0xa9, 0x83, 0x9a, 0x01, 0xbd, 0x49, 0xba, 0x36, 0x5e, 0xea, 0x40, 0x37, 0xa7,
|
||||||
0x74, 0x33, 0xca, 0x34, 0x91, 0x4a, 0x2a, 0x55, 0xf0, 0xec, 0xd4, 0x2a, 0x78, 0xce, 0xa8, 0x82,
|
0x4c, 0x13, 0xa9, 0xa4, 0x54, 0x05, 0xcf, 0xcf, 0xac, 0x82, 0x17, 0x8c, 0x2a, 0xf8, 0x2e, 0x34,
|
||||||
0xdf, 0x82, 0xa6, 0x9c, 0x14, 0xc5, 0x3e, 0xd1, 0xe5, 0x71, 0x43, 0x10, 0x0e, 0x63, 0x9f, 0xa0,
|
0xe4, 0xa4, 0x30, 0xf2, 0x88, 0x2e, 0x8f, 0xeb, 0x82, 0x70, 0x14, 0x79, 0x04, 0x6d, 0xc3, 0x6a,
|
||||||
0x2d, 0x58, 0x09, 0x49, 0x18, 0xa7, 0x23, 0x37, 0xc4, 0x89, 0x2b, 0x8a, 0x70, 0x59, 0xd8, 0x84,
|
0x40, 0x82, 0x28, 0x19, 0x3b, 0x01, 0x8e, 0x1d, 0x51, 0x84, 0xcb, 0xc2, 0x26, 0x18, 0xea, 0xc0,
|
||||||
0x27, 0x3a, 0x30, 0x23, 0xc5, 0x3d, 0xc0, 0xc9, 0x01, 0xbe, 0x14, 0xb5, 0xcd, 0xc1, 0x09, 0xda,
|
0x8c, 0x14, 0xf7, 0x10, 0xc7, 0x87, 0xf8, 0x52, 0xd4, 0x36, 0x87, 0x43, 0xb4, 0x0d, 0xb7, 0xbf,
|
||||||
0x82, 0xdb, 0x5f, 0xa6, 0x94, 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0x00, 0x32, 0x57, 0xd2, 0x10, 0xfc, 0x08, 0x4b, 0x09, 0xc8, 0x78,
|
||||||
0x01, 0x19, 0x8f, 0xb9, 0x28, 0x15, 0x45, 0x39, 0xa6, 0x8b, 0x2a, 0x49, 0x11, 0xee, 0x13, 0xa7,
|
0xc4, 0x45, 0xa9, 0x28, 0xca, 0x31, 0x5d, 0x54, 0x49, 0x8a, 0x70, 0x9f, 0x38, 0x0d, 0x23, 0x46,
|
||||||
0x61, 0xc8, 0x88, 0xaf, 0xb8, 0xaa, 0xa2, 0x6a, 0x08, 0x82, 0x64, 0x96, 0x0b, 0xb2, 0xb9, 0x4a,
|
0x3c, 0xc5, 0x55, 0x15, 0x55, 0x5d, 0x10, 0x24, 0xb3, 0x58, 0x90, 0x2d, 0x94, 0x0a, 0x32, 0x6b,
|
||||||
0x41, 0x66, 0x6f, 0x43, 0x4b, 0x27, 0xa7, 0x63, 0x91, 0xd8, 0xae, 0xb7, 0x5e, 0x5b, 0x57, 0x2b,
|
0x07, 0x9a, 0x3a, 0x39, 0x9d, 0x88, 0xc4, 0x76, 0xbd, 0xf5, 0xda, 0xba, 0x6a, 0x0e, 0xc4, 0x06,
|
||||||
0x80, 0x58, 0x07, 0xd8, 0x29, 0xac, 0x9f, 0x10, 0x9e, 0xed, 0xdf, 0xc1, 0xed, 0x42, 0x62, 0x9f,
|
0xc0, 0x6e, 0x6e, 0xfd, 0x94, 0xf0, 0x6c, 0xfd, 0x01, 0x6e, 0xe7, 0x12, 0x07, 0x94, 0xf1, 0xd4,
|
||||||
0x32, 0x9e, 0xf9, 0xe5, 0x23, 0x58, 0xa1, 0x91, 0x17, 0x0c, 0x7d, 0xe2, 0x46, 0x22, 0xbd, 0x07,
|
0x2f, 0x1f, 0xc1, 0x2a, 0x0d, 0x5d, 0x7f, 0xe4, 0x11, 0x27, 0x14, 0xe9, 0xdd, 0xcf, 0x3a, 0x9b,
|
||||||
0x79, 0x67, 0x63, 0xc9, 0x52, 0x6e, 0x59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 0x2d, 0x14, 0xc1, 0xea, 0xf4, 0xf8, 0x8d, 0xcc, 0x17, 0xc8,
|
||||||
0x08, 0xe3, 0xf9, 0x55, 0x81, 0x50, 0xce, 0x2f, 0x25, 0x10, 0x26, 0x66, 0xc3, 0x12, 0x08, 0x93,
|
0x2b, 0x93, 0xc0, 0xe0, 0xe1, 0xf7, 0x90, 0xcc, 0x16, 0xfc, 0x1a, 0x7a, 0x13, 0xe1, 0x16, 0x99,
|
||||||
0x93, 0x93, 0x7d, 0x0b, 0xc5, 0xb0, 0x32, 0x39, 0xea, 0x23, 0xf3, 0xdd, 0xf2, 0xca, 0xd4, 0x31,
|
0x90, 0xce, 0x8a, 0xe4, 0x83, 0x77, 0xae, 0x16, 0xca, 0x56, 0xf8, 0x0a, 0x3a, 0xa5, 0xe8, 0x88,
|
||||||
0x78, 0xf8, 0x3d, 0x24, 0xf3, 0x05, 0xbf, 0x86, 0xde, 0x58, 0x90, 0x46, 0x26, 0xa4, 0xd3, 0xe2,
|
0x0a, 0x50, 0x4c, 0x0d, 0x74, 0x03, 0xeb, 0x2a, 0x11, 0xd3, 0xfa, 0x89, 0xc8, 0x55, 0xb0, 0x7e,
|
||||||
0xff, 0xe0, 0x9d, 0xab, 0x85, 0xf2, 0x15, 0xbe, 0x82, 0xc5, 0x4a, 0x48, 0x45, 0x25, 0x28, 0x26,
|
0x56, 0x20, 0x2d, 0x58, 0x3f, 0x3b, 0xf8, 0xc9, 0x53, 0x59, 0x0e, 0x58, 0x85, 0x53, 0x39, 0x23,
|
||||||
0x06, 0xba, 0x81, 0x7d, 0x95, 0x88, 0x69, 0xfd, 0x58, 0xe4, 0x2a, 0x59, 0x3f, 0x2d, 0x90, 0x96,
|
0x36, 0x16, 0x4e, 0xe5, 0xac, 0x88, 0x67, 0xdd, 0x1a, 0x2e, 0xc8, 0x1f, 0xd2, 0x1f, 0xfe, 0x2f,
|
||||||
0xac, 0x9f, 0x1e, 0xfc, 0xe4, 0xa9, 0xac, 0x06, 0xac, 0xd2, 0xa9, 0x9c, 0x12, 0x1b, 0x4b, 0xa7,
|
0x00, 0x00, 0xff, 0xff, 0x9d, 0x02, 0x6b, 0x59, 0xa0, 0x1e, 0x00, 0x00,
|
||||||
0x72, 0x5a, 0xc4, 0xb3, 0x6f, 0x9d, 0xcc, 0xc9, 0xdf, 0xd8, 0x1f, 0xfe, 0x37, 0x00, 0x00, 0xff,
|
|
||||||
0xff, 0x41, 0x4f, 0x53, 0xa0, 0xd6, 0x1e, 0x00, 0x00,
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package weed_server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -72,8 +73,7 @@ func (ms *MasterServer) LeaseAdminToken(ctx context.Context, req *master_pb.Leas
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
// refuse since still locked
|
// refuse since still locked
|
||||||
resp.Error = "already locked"
|
return resp, fmt.Errorf("already locked")
|
||||||
return resp, nil
|
|
||||||
}
|
}
|
||||||
// for fresh lease request
|
// for fresh lease request
|
||||||
ts, token := ms.generateToken()
|
ts, token := ms.generateToken()
|
||||||
|
|
|
@ -28,6 +28,7 @@ type CommandEnv struct {
|
||||||
env map[string]string
|
env map[string]string
|
||||||
MasterClient *wdclient.MasterClient
|
MasterClient *wdclient.MasterClient
|
||||||
option ShellOptions
|
option ShellOptions
|
||||||
|
locker *ExclusiveLocker
|
||||||
}
|
}
|
||||||
|
|
||||||
type command interface {
|
type command interface {
|
||||||
|
@ -41,11 +42,13 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewCommandEnv(options ShellOptions) *CommandEnv {
|
func NewCommandEnv(options ShellOptions) *CommandEnv {
|
||||||
return &CommandEnv{
|
ce := &CommandEnv{
|
||||||
env: make(map[string]string),
|
env: make(map[string]string),
|
||||||
MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", 0, strings.Split(*options.Masters, ",")),
|
MasterClient: wdclient.NewMasterClient(options.GrpcDialOption, pb.AdminShellClient, "", 0, strings.Split(*options.Masters, ",")),
|
||||||
option: options,
|
option: options,
|
||||||
}
|
}
|
||||||
|
ce.locker = NewExclusiveLocker(ce.MasterClient)
|
||||||
|
return ce
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ce *CommandEnv) parseUrl(input string) (path string, err error) {
|
func (ce *CommandEnv) parseUrl(input string) (path string, err error) {
|
||||||
|
|
95
weed/shell/exclusive_locker.go
Normal file
95
weed/shell/exclusive_locker.go
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
package shell
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"sync/atomic"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/pb/master_pb"
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/wdclient"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
RenewInteval = 4 * time.Second
|
||||||
|
SafeRenewInteval = 3 * time.Second
|
||||||
|
)
|
||||||
|
|
||||||
|
type ExclusiveLocker struct {
|
||||||
|
masterClient *wdclient.MasterClient
|
||||||
|
token int64
|
||||||
|
lockTsNs int64
|
||||||
|
isLocking bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewExclusiveLocker(masterClient *wdclient.MasterClient) *ExclusiveLocker {
|
||||||
|
return &ExclusiveLocker{
|
||||||
|
masterClient: masterClient,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *ExclusiveLocker) GetToken() (token int64, lockTsNs int64) {
|
||||||
|
for time.Unix(0, atomic.LoadInt64(&l.lockTsNs)).Add(SafeRenewInteval).Before(time.Now()) {
|
||||||
|
// wait until now is within the safe lock period, no immediate renewal to change the token
|
||||||
|
time.Sleep(100 * time.Millisecond)
|
||||||
|
}
|
||||||
|
return atomic.LoadInt64(&l.token), atomic.LoadInt64(&l.lockTsNs)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *ExclusiveLocker) Lock() {
|
||||||
|
// retry to get the lease
|
||||||
|
for {
|
||||||
|
if err := l.masterClient.WithClient(func(client master_pb.SeaweedClient) error {
|
||||||
|
resp, err := client.LeaseAdminToken(context.Background(), &master_pb.LeaseAdminTokenRequest{
|
||||||
|
PreviousToken: atomic.LoadInt64(&l.token),
|
||||||
|
PreviousLockTime: atomic.LoadInt64(&l.lockTsNs),
|
||||||
|
})
|
||||||
|
if err == nil {
|
||||||
|
atomic.StoreInt64(&l.token, resp.Token)
|
||||||
|
atomic.StoreInt64(&l.lockTsNs, resp.LockTsNs)
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}); err != nil {
|
||||||
|
time.Sleep(RenewInteval)
|
||||||
|
} else {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
l.isLocking = true
|
||||||
|
|
||||||
|
// start a goroutine to renew the lease
|
||||||
|
go func() {
|
||||||
|
for l.isLocking {
|
||||||
|
if err := l.masterClient.WithClient(func(client master_pb.SeaweedClient) error {
|
||||||
|
resp, err := client.LeaseAdminToken(context.Background(), &master_pb.LeaseAdminTokenRequest{
|
||||||
|
PreviousToken: atomic.LoadInt64(&l.token),
|
||||||
|
PreviousLockTime: atomic.LoadInt64(&l.lockTsNs),
|
||||||
|
})
|
||||||
|
if err == nil {
|
||||||
|
atomic.StoreInt64(&l.token, resp.Token)
|
||||||
|
atomic.StoreInt64(&l.lockTsNs, resp.LockTsNs)
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}); err != nil {
|
||||||
|
glog.Error("failed to renew lock: %v", err)
|
||||||
|
return
|
||||||
|
} else {
|
||||||
|
time.Sleep(RenewInteval)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *ExclusiveLocker) Unlock() {
|
||||||
|
l.isLocking = false
|
||||||
|
l.masterClient.WithClient(func(client master_pb.SeaweedClient) error {
|
||||||
|
client.ReleaseAdminToken(context.Background(), &master_pb.ReleaseAdminTokenRequest{
|
||||||
|
PreviousToken: atomic.LoadInt64(&l.token),
|
||||||
|
PreviousLockTime: atomic.LoadInt64(&l.lockTsNs),
|
||||||
|
})
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
}
|
Loading…
Reference in a new issue