[
https://issues.apache.org/jira/browse/SAMZA-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897009#comment-13897009
]
Steve Yates commented on SAMZA-30:
----------------------------------
Sounds good, are you thinking along the lines of a strategy interface which
encapsulates the runnable?
If it were to track previous sleep history, how and when would this data become
useful? Just trying to understand if this information should be available to
the jmx broker or other
Will remove the non exp backoff, i just like options i guess ;)
> Back off in BrokerProxy when fetch fails
> ----------------------------------------
>
> Key: SAMZA-30
> URL: https://issues.apache.org/jira/browse/SAMZA-30
> Project: Samza
> Issue Type: Bug
> Components: kafka
> Affects Versions: 0.6.0
> Reporter: Chris Riccomini
> Assignee: Steve Yates
> Labels: newbie
> Attachments: SAMZA-30.diff
>
>
> The BrokerProxy immediately recreates its simple consumer, and re-fetches
> when an exception is thrown in its fetch loop (inside its thread). We should
> add a backoff here. Rather than doing a fixed time (say sleep 10s), let's do
> an exponential backoff with a cap (0s, 100s, 200s, 400s, 800s, 1.6s, .. up to
> cap), so we don't introduce lag in the case where there's a one-off failure
> and an immediate reconnect would work.
> I suggest adding a config to allow the backoff time and max cap and to be
> defined, but default it to 100ms, and 10s, respectively.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)