Skip to content

Backoff stuck until 36s of idle time #841

@bombela

Description

@bombela

https://github.com/getsentry/raven-ruby/blob/120a416cf0df0a08803992a7c643741862f000ad/lib/raven/client.rb#L28

Because failed_send() is called right after should_try?(), last_check is updated to Time.now, meaning no messages can ever be sent until at least 36s (6 power of 2) has elapsed between two calls to send_event().

Expected behavior: backoff should try to send a message up to once every 36s in the worst case, until a successful send.
Observed behavior: After a single error, no further messages will be sent until there is a gap of 36s between calls to send_event(). On busy systems like I have, this means no more messages will be sent until the process is restarted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions