Skip to content

RUM-2314 Fix ConcurrentModificationException in BitmapPool#1798

Merged
jonathanmos merged 1 commit into
developfrom
jmoskovich/rum-2314/bitmap-pool-exception
Jan 2, 2024
Merged

RUM-2314 Fix ConcurrentModificationException in BitmapPool#1798
jonathanmos merged 1 commit into
developfrom
jmoskovich/rum-2314/bitmap-pool-exception

Conversation

@jonathanmos

@jonathanmos jonathanmos commented Jan 1, 2024

Copy link
Copy Markdown
Member

What does this PR do?

Fixes a ConcurrentModificationException that can occur due a race condition between low memory evicting items from the cache, and threads attempting to query the cache.

Motivation

What inspired you to submit this pull request?

Additional Notes

3000 iterations is the lower bound to reliably reproduce the issue in a reasonable number of unit test runs when it exists. This number of iterations takes around 4 seconds to run locally.

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 Jan 1, 2024

Copy link
Copy Markdown

Codecov Report

Merging #1798 (e2a50d3) into develop (9ac1e2a) will increase coverage by 0.07%.
The diff coverage is 75.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1798      +/-   ##
===========================================
+ Coverage    83.42%   83.49%   +0.07%     
===========================================
  Files          466      466              
  Lines        16371    16363       -8     
  Branches      2454     2450       -4     
===========================================
+ Hits         13657    13662       +5     
- Misses        2039     2041       +2     
+ Partials       675      660      -15     
Files Coverage Δ
...ssionreplay/internal/recorder/base64/BitmapPool.kt 87.50% <75.00%> (ø)

... and 26 files with indirect coverage changes

@jonathanmos
jonathanmos marked this pull request as ready for review January 1, 2024 15:59
@jonathanmos
jonathanmos requested review from a team as code owners January 1, 2024 15:59
@jonathanmos
jonathanmos force-pushed the jmoskovich/rum-2314/bitmap-pool-exception branch from 8c91847 to 39d9e24 Compare January 2, 2024 09:22
@jonathanmos
jonathanmos force-pushed the jmoskovich/rum-2314/bitmap-pool-exception branch from 39d9e24 to e2a50d3 Compare January 2, 2024 09:56
@jonathanmos
jonathanmos merged commit 85539e2 into develop Jan 2, 2024
@jonathanmos
jonathanmos deleted the jmoskovich/rum-2314/bitmap-pool-exception branch January 2, 2024 10:25
@xgouchet xgouchet added this to the 2.5.0 milestone Feb 19, 2024
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.

5 participants