[ https://issues.apache.org/jira/browse/KAFKA-497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao resolved KAFKA-497. --------------------------- Resolution: Fixed With KAFKA-506, this is no longer an issue. Since offsets are logical, the consumer can never see a partial message. During unclean leader election, a small number of messages may not match among replicas. So, it's possible for a consumer to see a different message on the same offset at different point of time. However, this is ok since during unclean leader election, there is no guarantee that all data is protected. > recover consumer during unclean leadership change > ------------------------------------------------- > > Key: KAFKA-497 > URL: https://issues.apache.org/jira/browse/KAFKA-497 > Project: Kafka > Issue Type: Bug > Components: core > Reporter: Jun Rao > Priority: Blocker > Labels: bugs > Fix For: 0.8 > > Original Estimate: 168h > Remaining Estimate: 168h > > When we do an unclean leadership change (i.e., no live broker in ISR), > offsets already exposed to consumers may no longer be valid. As a result, a > consumer could either receive an OffsetOutOfRange exception or hit an > InvalidMessageSizeException while iterating a fetched message set. In either > case, we need to be able to recover the consumption (probably from the > current latest offset from the leader). We need to recover both regular and > follower consumers. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira