mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
Fix lag behind error with 0 servicetime (#21637)
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
This commit is contained in:
parent
d0b974de07
commit
8f202274a7
@ -170,7 +170,7 @@ func (b *baseReadTask) Ready() (bool, error) {
|
|||||||
if guaranteeTs > serviceTime {
|
if guaranteeTs > serviceTime {
|
||||||
lag := gt.Sub(st)
|
lag := gt.Sub(st)
|
||||||
maxLag := Params.QueryNodeCfg.MaxTimestampLag.GetAsDuration(time.Second)
|
maxLag := Params.QueryNodeCfg.MaxTimestampLag.GetAsDuration(time.Second)
|
||||||
if lag > maxLag {
|
if serviceTime != 0 && lag > maxLag {
|
||||||
log.Warn("guarantee and servicable ts larger than MaxLag",
|
log.Warn("guarantee and servicable ts larger than MaxLag",
|
||||||
zap.Time("guaranteeTime", gt),
|
zap.Time("guaranteeTime", gt),
|
||||||
zap.Time("serviceableTime", st),
|
zap.Time("serviceableTime", st),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user