chobomuffin/stalka — pull request #5 by cliffano (2012-12-06 08:49:28+00:00)
Title: Publish start sequence prior to listening to changes + Add infinite retry

Publish start sequence prior to listening to changes
--------------------------------------------------------------------
When last sequence in _local/feed is N and Stalka is started, Stalka will start polling since N but statsWriter registrars will have sequence 0. This inconsistent value will stay until there's a change, which might take a while for a non-write-heavy instance.
This patch should ensure that both Stalka and statsWriter registrars start with the same sequence.

Add infinite retry
----------------------
This patch allows Stalka to keep retrying during a long duration of errors (e.g. couch is down for several hours). Without infinite retry, Stalka will have to be restarted, and probably involve some form of manual intervention.