You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Hai (JIRA)" <ji...@apache.org> on 2018/09/26 17:02:00 UTC

[jira] [Created] (SAMZA-1914) out of range starting offset for EH consumer

Hai created SAMZA-1914:
--------------------------

             Summary: out of range starting offset for EH consumer
                 Key: SAMZA-1914
                 URL: https://issues.apache.org/jira/browse/SAMZA-1914
             Project: Samza
          Issue Type: Bug
            Reporter: Hai
            Assignee: Hai


In EventHubs today we use offset + 1 as the next offset. This would cause problem if the consumer restarts and there is no event produced into the server. Because then offset + 1 would be an out of range offset and eventhubs client would fail to initialize.

The proposed fix here is to always use offset (+0) as the "next" offset. And when we initialize the EH client, we specify to exclude the offset that we provide. This way we won't be reprocessing the last event and we avoid out of range offset error.

We need to be careful that this doesn't cause Brooklin to miss event; so should also double check the EH connector in Brooklin as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)