Skip to content

Commit

Permalink
batch: fix time range query
Browse files Browse the repository at this point in the history
when sentAny == false, continue to the next batch
  • Loading branch information
c9s committed Jan 8, 2024
1 parent ad8ea86 commit ed8d66c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/exchange/batch/time_range_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,11 @@ func (q *AsyncTimeRangedBatchQuery) Query(ctx context.Context, ch interface{}, s
}

if !sentAny {
log.Debugf("batch querying %T: %d/%d records are not sent", q.Type, listLen, listLen)
return
// there are 2 reasons that records can not send
// 1) duplicated record
// 2) out-of-range record
log.Debugf("batch querying %T: %d/%d records are not sent, continue to the next batch", q.Type, listLen, listLen)
continue
}
}
}()
Expand Down

0 comments on commit ed8d66c

Please sign in to comment.