mirror of https://github.com/milvus-io/milvus.git
Make the subName unique for the datanode tt channel (#21616)
Signed-off-by: SimFG <bang.fu@zilliz.com> Co-authored-by: SimFG <bang.fu@zilliz.com>pull/21627/head
parent
de318c2e7c
commit
c704037991
|
@ -485,11 +485,12 @@ func (s *Server) startDataNodeTtLoop(ctx context.Context) {
|
|||
log.Error("DataCoord failed to create timetick channel", zap.Error(err))
|
||||
panic(err)
|
||||
}
|
||||
subName := fmt.Sprintf("%s-%d-datanodeTl", Params.CommonCfg.DataCoordSubName, Params.DataCoordCfg.GetNodeID())
|
||||
ttMsgStream.AsConsumer([]string{Params.CommonCfg.DataCoordTimeTick},
|
||||
Params.CommonCfg.DataCoordSubName, mqwrapper.SubscriptionPositionLatest)
|
||||
subName, mqwrapper.SubscriptionPositionLatest)
|
||||
log.Info("DataCoord creates the timetick channel consumer",
|
||||
zap.String("timeTickChannel", Params.CommonCfg.DataCoordTimeTick),
|
||||
zap.String("subscription", Params.CommonCfg.DataCoordSubName))
|
||||
zap.String("subscription", subName))
|
||||
ttMsgStream.Start()
|
||||
|
||||
go s.handleDataNodeTimetickMsgstream(ctx, ttMsgStream)
|
||||
|
|
Loading…
Reference in New Issue