Github user Parth-Brahmbhatt commented on the pull request: https://github.com/apache/storm/pull/339#issuecomment-67555520 I had a chat with @harshach and he pointed out that we will hit https://github.com/apache/storm/pull/321 if we just use KafkaUtil.getOffset method. I have modified the code so as part of handling the OffsetOutOfRange exception we use the earliestTime instead of using the latestTime when forceFromStart = false which is the default value and can result in data loss.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---