[ 
https://issues.apache.org/jira/browse/SAMZA-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13924410#comment-13924410
 ] 

Chris Riccomini commented on SAMZA-157:
---------------------------------------

The problem with (4) is that it leaks into the SystemConsumer API, since the 
SystemConsumer is the only one that knows what the next offset is going to be.

I'm going to implement (1).

> Offset default behavior for streams
> -----------------------------------
>
>                 Key: SAMZA-157
>                 URL: https://issues.apache.org/jira/browse/SAMZA-157
>             Project: Samza
>          Issue Type: Bug
>          Components: container
>    Affects Versions: 0.6.0
>            Reporter: Chris Riccomini
>            Assignee: Chris Riccomini
>         Attachments: SAMZA-157.0.patch
>
>
> Introduce a systems.<system name>.streams.<stream name>.samza.offset.default 
> configuration, which specifies what to do when no checkpoint exists for an 
> input topic. This is a similar to setting to Kafka's auto.offset.reset 
> setting. Developers will be able to specify "oldest", "latest", or "fail".
> we should also add the ability to override offsets for specific stream 
> partitions. Something like:
> {noformat}
> systems.<system name>.streams.<stream 
> name>.samza.force.offsets=0:123,1:123,2:123
> {noformat}
> The format I'm proposing is:
> {noformat}
> <partition string>:<force offset>,...
> {noformat}
> This is obviously dependent on offsets not having ':' or ',' in them, which I 
> think is a safe assumption.
> This setting would force the system consumer to be registered with the 
> specified offset for the given SSP (ignoring both the checkpoint, if it 
> exists, and the samza.reset.offset setting).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to