mirror of https://github.com/milvus-io/milvus.git
fix: Fix SyncDistribution may cost too much time on retry (#38454)
issue: #38428 Signed-off-by: Wei Liu <wei.liu@zilliz.com>pull/35589/head
parent
8794ec966e
commit
40f9db491e
|
@ -465,7 +465,7 @@ func (ob *TargetObserver) sync(ctx context.Context, replica *meta.Replica, leade
|
|||
Version: time.Now().UnixNano(),
|
||||
IndexInfoList: indexInfo,
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(ctx, paramtable.Get().QueryCoordCfg.SegmentTaskTimeout.GetAsDuration(time.Millisecond))
|
||||
ctx, cancel := context.WithTimeout(ctx, paramtable.Get().QueryCoordCfg.BrokerTimeout.GetAsDuration(time.Millisecond))
|
||||
defer cancel()
|
||||
|
||||
resp, err := ob.cluster.SyncDistribution(ctx, leaderView.ID, req)
|
||||
|
|
Loading…
Reference in New Issue