DBZ-1361 Restoring compatibility with Apache Kafka 1.x
This commit is contained in:
parent
e95d656bca
commit
a41fb30eaa
@ -227,7 +227,8 @@ protected void recoverRecords(Consumer<HistoryRecord> records) {
|
||||
endOffset = getEndOffsetOfDbHistoryTopic(endOffset, historyConsumer);
|
||||
logger.debug("End offset of database history topic is {}", endOffset);
|
||||
|
||||
ConsumerRecords<String, String> recoveredRecords = historyConsumer.poll(this.pollInterval);
|
||||
// DBZ-1361 not using poll(Duration) to keep compatibility with AK 1.x
|
||||
ConsumerRecords<String, String> recoveredRecords = historyConsumer.poll(this.pollInterval.toMillis());
|
||||
int numRecordsProcessed = 0;
|
||||
|
||||
for (ConsumerRecord<String, String> record : recoveredRecords) {
|
||||
|
Loading…
Reference in New Issue
Block a user