Skip to content

Commit e3168e7

Browse files
committed
batch: fix time range query
when sentAny == false, continue to the next batch
1 parent e5033c0 commit e3168e7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/exchange/batch/time_range_query.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,11 @@ func (q *AsyncTimeRangedBatchQuery) Query(ctx context.Context, ch interface{}, s
115115
}
116116

117117
if !sentAny {
118-
log.Debugf("batch querying %T: %d/%d records are not sent", q.Type, listLen, listLen)
119-
return
118+
// there are 2 reasons that records can not send
119+
// 1) duplicated record
120+
// 2) out-of-range record
121+
log.Debugf("batch querying %T: %d/%d records are not sent, continue to the next batch", q.Type, listLen, listLen)
122+
continue
120123
}
121124
}
122125
}()

0 commit comments

Comments
 (0)