mirror of https://github.com/milvus-io/milvus.git
Cherry-pick from master pr: #35011 See also #35008 Use tickle timeout logic instead of hardcode context timeout Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/35033/head
parent
9cd6dbcbc9
commit
2a43f43916
|
@ -29,6 +29,7 @@ import (
|
|||
"github.com/milvus-io/milvus/pkg/log"
|
||||
"github.com/milvus-io/milvus/pkg/util/lifetime"
|
||||
"github.com/milvus-io/milvus/pkg/util/merr"
|
||||
"github.com/milvus-io/milvus/pkg/util/paramtable"
|
||||
"github.com/milvus-io/milvus/pkg/util/typeutil"
|
||||
)
|
||||
|
||||
|
@ -342,8 +343,8 @@ func (r *opRunner) watchWithTimer(info *datapb.ChannelWatchInfo) *opState {
|
|||
finishWaiter sync.WaitGroup
|
||||
)
|
||||
|
||||
watchTimeout := Params.DataCoordCfg.WatchTimeoutInterval.GetAsDuration(time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), watchTimeout)
|
||||
watchTimeout := paramtable.Get().DataCoordCfg.WatchTimeoutInterval.GetAsDuration(time.Second)
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
startTimer := func(finishWg *sync.WaitGroup) {
|
||||
|
|
Loading…
Reference in New Issue