mirror of https://github.com/milvus-io/milvus.git
Change default unregister policy (#5710)
* Change default unassign policy Signed-off-by: Congqi Xia <congqi.xia@zilliz.com> * Fix gofmt Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/5779/head
parent
a3788a99c5
commit
7d9f299ff6
|
@ -71,7 +71,7 @@ func defaultRegisterPolicy() dataNodeRegisterPolicy {
|
|||
}
|
||||
|
||||
func defaultUnregisterPolicy() dataNodeUnregisterPolicy {
|
||||
return newEmptyUnregisterPolicy()
|
||||
return &randomAssignUnregisterPolicy{}
|
||||
}
|
||||
|
||||
func defaultAssignPolicy() channelAssignPolicy {
|
||||
|
|
|
@ -544,7 +544,6 @@ func (s *Server) prepareBinlog(req *datapb.SaveBinlogPathsRequest) (map[string]s
|
|||
return meta, nil
|
||||
}
|
||||
|
||||
|
||||
func composeSegmentFlushMsgPack(segmentID UniqueID) msgstream.MsgPack {
|
||||
msgPack := msgstream.MsgPack{
|
||||
Msgs: make([]msgstream.TsMsg, 0, 1),
|
||||
|
|
|
@ -51,7 +51,7 @@ func NewClient(addr string, timeout time.Duration) (*Client, error) {
|
|||
return &Client{
|
||||
grpc: nil,
|
||||
conn: nil,
|
||||
addr: addr,
|
||||
addr: addr,
|
||||
ctx: context.Background(),
|
||||
timeout: timeout,
|
||||
recallTry: 3,
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewClient(addr string, timeout time.Duration) (*Client, error) {
|
|||
return nil, fmt.Errorf("address is empty")
|
||||
}
|
||||
return &Client{
|
||||
addr: addr,
|
||||
addr: addr,
|
||||
ctx: context.Background(),
|
||||
timeout: timeout,
|
||||
recallTry: 3,
|
||||
|
|
|
@ -46,7 +46,7 @@ func NewClient(addr string, timeout time.Duration) (*Client, error) {
|
|||
return nil, fmt.Errorf("addr is empty")
|
||||
}
|
||||
return &Client{
|
||||
ctx: context.Background(),
|
||||
ctx: context.Background(),
|
||||
addr: addr,
|
||||
timeout: timeout,
|
||||
recallTry: 3,
|
||||
|
|
Loading…
Reference in New Issue