basho/riak_core — pull request #336 by russelldb (2013-06-12 22:31:50+00:00)
Title: Fix crashing stat mod never getting rescheduled

See issue #335

1.3.1 updated the cache to fetch stats in the background rather than
on demand. A new bug was added. If the stat mod crashes during
production of stats, it is never rescheduled.

Fix by rescheduling when crash is detected. Exponentially backoff
the schedule after an error so as not to spam the log.