Fix lag behind error with 0 servicetime (#21637)

Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
pull/21674/head
Xiaofan 2023-01-12 10:53:39 +08:00 committed by GitHub
parent d0b974de07
commit 8f202274a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ func (b *baseReadTask) Ready() (bool, error) {
if guaranteeTs > serviceTime {
lag := gt.Sub(st)
maxLag := Params.QueryNodeCfg.MaxTimestampLag.GetAsDuration(time.Second)
if lag > maxLag {
if serviceTime != 0 && lag > maxLag {
log.Warn("guarantee and servicable ts larger than MaxLag",
zap.Time("guaranteeTime", gt),
zap.Time("serviceableTime", st),