GitHub user logarithm opened a pull request:
https://github.com/apache/samza/pull/83
SAMZA-1136: If latest offset <= 0 then SystemStreamMetadata is incorrect
Debug log says "Setting oldest offset to 0 to consume from beginning", but
actually current code just adds element to immutable map but do nothing with
the result of addition.
```scala
oldestOffsets.get(topicAndPartition) match {
case Some(s) =>
oldestOffsets.updated(topicAndPartition, "0")
case None =>
oldestOffsets.put(topicAndPartition, "0")
}
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/metamx/samza oldest-offsets
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/samza/pull/83.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #83
----
commit 529bf1974ab8e85cf2a57850fe51dc484c973fa6
Author: Maksim Logvinenko <[email protected]>
Date: 2017-03-11T21:03:58Z
Set "0" for oldest offsets if current offset <= 0
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---