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
wei liu 2024-12-16 11:38:44 +08:00 committed by GitHub
parent 8794ec966e
commit 40f9db491e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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