Fix lag behind error with 0 servicetime (#21637) (#21899)

Signed-off-by: yah01 <yang.cen@zilliz.com>
This commit is contained in:
yah01 2023-02-01 14:25:51 +08:00 committed by GitHub
parent 3b4e5ac297
commit ebf7455e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ func (b *baseReadTask) Ready() (bool, error) {
if guaranteeTs > serviceTime {
lag := gt.Sub(st)
maxLag := Params.QueryNodeCfg.MaxTimestampLag
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),