You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Maksim Logvinenko (JIRA)" <ji...@apache.org> on 2017/03/11 21:10:04 UTC
[jira] [Created] (SAMZA-1136) If latest offset <= 0 then
SystemStreamMetadata is incorrect
Maksim Logvinenko created SAMZA-1136:
----------------------------------------
Summary: If latest offset <= 0 then SystemStreamMetadata is incorrect
Key: SAMZA-1136
URL: https://issues.apache.org/jira/browse/SAMZA-1136
Project: Samza
Issue Type: Bug
Reporter: Maksim Logvinenko
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.
{code:scala}
oldestOffsets.get(topicAndPartition) match {
case Some(s) =>
oldestOffsets.updated(topicAndPartition, "0")
case None =>
oldestOffsets.put(topicAndPartition, "0")
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)