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

Signed-off-by: SimFG <bang.fu@zilliz.com>
pull/21422/head
SimFG 2022-12-28 16:45:30 +08:00 committed by GitHub
parent 30b86275ac
commit 41bbfbec6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -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