mirror of https://github.com/apache/druid.git
fix can't get latest offset in KafkaEightSimpleConsumerFirehoseFactory (#3355)
This commit is contained in:
parent
454587857c
commit
df89f25b15
|
@ -153,7 +153,7 @@ public class KafkaEightSimpleConsumerFirehoseFactory implements
|
|||
);
|
||||
Long startOffset = lastOffsets.get(partition);
|
||||
PartitionConsumerWorker worker = new PartitionConsumerWorker(
|
||||
feed, kafkaSimpleConsumer, partition, startOffset == null ? 0 : startOffset
|
||||
feed, kafkaSimpleConsumer, partition, startOffset == null ? -1 : startOffset
|
||||
);
|
||||
consumerWorkers.add(worker);
|
||||
}
|
||||
|
|
|
@ -238,7 +238,7 @@ public class KafkaSimpleConsumer
|
|||
}
|
||||
catch (Exception e) {
|
||||
ensureNotInterrupted(e);
|
||||
log.warn(e, "caughte exception in fetch {} - {}", topic, partitionId);
|
||||
log.warn(e, "caught exception in fetch {} - {}", topic, partitionId);
|
||||
response = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue