fix can't get latest offset in KafkaEightSimpleConsumerFirehoseFactory (#3355)

This commit is contained in:
kaijianding 2016-08-12 09:00:24 +08:00 committed by Fangjin Yang
parent 454587857c
commit df89f25b15
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;
}