未验证 提交 41bbfbec 编写于 作者: S SimFG 提交者: GitHub

Fix the pulsar error when datanode is removed (#21415)

Signed-off-by: NSimFG <bang.fu@zilliz.com>
上级 30b86275
......@@ -143,13 +143,6 @@ func (f *PmsFactory) NewMsgStreamDisposer(ctx context.Context) func([]string, st
}
log.Warn("failed to clean up subscriptions", zap.String("pulsar web", f.PulsarWebAddress),
zap.String("topic", channel), zap.Any("subname", subname), zap.Error(err))
// fallback to original way
msgstream, err := f.NewMsgStream(ctx)
if err != nil {
return err
}
msgstream.AsConsumer(channels, subname, mqwrapper.SubscriptionPositionUnknown)
msgstream.Close()
}
}
return nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册