enhance: Increase search/query retry times on proxy before timeout (#40438)

issue: #39379

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
This commit is contained in:
wei liu 2025-06-06 18:12:32 +08:00 committed by GitHub
parent b50c4a7973
commit 8511881d3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -461,7 +461,7 @@ func (s *LBPolicySuite) TestExecute() {
},
})
s.Error(err)
s.Equal(int64(11), counter.Load())
s.Equal(int64(26), counter.Load())
// test get shard leader failed
globalMetaCache.DeprecateShardCache(dbName, s.collectionName)

View File

@ -1882,7 +1882,7 @@ please adjust in embedded Milvus: false`,
p.RetryTimesOnReplica = ParamItem{
Key: "proxy.retryTimesOnReplica",
Version: "2.3.0",
DefaultValue: "2",
DefaultValue: "5",
Doc: "retry times on each replica",
}
p.RetryTimesOnReplica.Init(base.mgr)

View File

@ -203,7 +203,7 @@ func TestComponentParam(t *testing.T) {
assert.Equal(t, Params.ReplicaSelectionPolicy.GetValue(), "look_aside")
assert.Equal(t, Params.CheckQueryNodeHealthInterval.GetAsInt(), 1000)
assert.Equal(t, Params.CostMetricsExpireTime.GetAsInt(), 1000)
assert.Equal(t, Params.RetryTimesOnReplica.GetAsInt(), 2)
assert.Equal(t, Params.RetryTimesOnReplica.GetAsInt(), 5)
assert.EqualValues(t, Params.HealthCheckTimeout.GetAsInt64(), 3000)
params.Save("proxy.gracefulStopTimeout", "100")