Skip to content

RUM-8038: Improvements to the upload mechanism#2514

Merged
jonathanmos merged 2 commits into
developfrom
jmoskovich/rum-8038/upload-improvements
Mar 3, 2025
Merged

RUM-8038: Improvements to the upload mechanism#2514
jonathanmos merged 2 commits into
developfrom
jmoskovich/rum-8038/upload-improvements

Conversation

@jonathanmos

@jonathanmos jonathanmos commented Feb 27, 2025

Copy link
Copy Markdown
Member

What does this PR do?

Part of the effort to reduce batch loss.

The improvements implemented here:
• Doubling the average batch processing level, so that instead of an average 10 uploads (10 batches) per upload trigger, it will now be 20.
• Reducing the backoff to the minimum when an upload has succeeded, instead of the previous behavior where we gradually reduced by 10% until we reached the minimum.

Motivation

Faster recovery from offline periods.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@codecov-commenter

codecov-commenter commented Feb 27, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.03%. Comparing base (9068c03) to head (3dc8afb).
Report is 19 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2514      +/-   ##
===========================================
+ Coverage    69.95%   70.03%   +0.08%     
===========================================
  Files          794      794              
  Lines        29873    29873              
  Branches      4994     4991       -3     
===========================================
+ Hits         20897    20920      +23     
+ Misses        7588     7570      -18     
+ Partials      1388     1383       -5     
Files with missing lines Coverage Δ
...android/core/configuration/BatchProcessingLevel.kt 100.00% <100.00%> (ø)
...rnal/data/upload/DefaultUploadSchedulerStrategy.kt 92.86% <100.00%> (-0.89%) ⬇️

... and 44 files with indirect coverage changes

@jonathanmos
jonathanmos marked this pull request as ready for review March 3, 2025 11:28
@jonathanmos
jonathanmos requested review from a team as code owners March 3, 2025 11:28
@jonathanmos
jonathanmos merged commit 30755a2 into develop Mar 3, 2025
@jonathanmos
jonathanmos deleted the jmoskovich/rum-8038/upload-improvements branch March 3, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants