Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MM-54192] Implement re-try logic for recording client #499

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Conversation

streamer45
Copy link
Collaborator

Summary

PR adds some basic re-try logic to asynchronous requests that could fail due to intermittent networking issues. We implement a simple incremental back off algorithm with a configurable maximum number of attempts and retry interval.

Hopefully this will be enough to overcome the existing issues but will need to be verified on Community prior to merging.

Ticket Link

https://mattermost.atlassian.net/browse/MM-54192

@streamer45 streamer45 added 2: Dev Review Requires review by a core committer Do Not Merge Should not be merged until this label is removed labels Aug 23, 2023
@streamer45 streamer45 added this to the v0.19.0 - MM 9.0 milestone Aug 23, 2023
@streamer45 streamer45 requested a review from cpoile August 23, 2023 00:56
@streamer45 streamer45 self-assigned this Aug 23, 2023
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (ab8863b) 5.60% compared to head (f541556) 5.60%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #499   +/-   ##
=====================================
  Coverage   5.60%   5.60%           
=====================================
  Files         21      21           
  Lines       4193    4193           
=====================================
  Hits         235     235           
  Misses      3941    3941           
  Partials      17      17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, slick. Nice work!

@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Aug 23, 2023
@streamer45
Copy link
Collaborator Author

Tested a bit and it seems like it's doing its job.

image

@streamer45 streamer45 removed the Do Not Merge Should not be merged until this label is removed label Aug 28, 2023
@streamer45 streamer45 merged commit 6da5c31 into main Aug 28, 2023
@streamer45 streamer45 deleted the MM-54192 branch August 28, 2023 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants