mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 09:08:43 +08:00
fix: Fix data race in replicate stream client (#45346)
issue: https://github.com/milvus-io/milvus/issues/44123 Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
parent
4a6e8d822c
commit
2fad5b34f7
@ -87,11 +87,11 @@ func NewReplicateStreamClient(ctx context.Context, c cluster.MilvusClient, chann
|
||||
|
||||
func (r *replicateStreamClient) startInternal() {
|
||||
defer func() {
|
||||
r.metrics.OnClose()
|
||||
close(r.finishedCh)
|
||||
log.Info("replicate stream client closed",
|
||||
zap.String("key", r.channel.Key),
|
||||
zap.Int64("revision", r.channel.ModRevision))
|
||||
r.metrics.OnClose()
|
||||
close(r.finishedCh)
|
||||
}()
|
||||
|
||||
backoff := backoff.NewExponentialBackOff()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user