Skip to content

Conversation

@amakutunowicz
Copy link
Contributor

Summary

Two methods in InMemNamedBlobDb completed futures exceptionally but didn't return, allowing execution to continue and potentially complete the future again, causing index out of bounds (OOB) errors.

Testing Done

I also added respective unit tests.

Two methods in InMemNamedBlobDb completed futures exceptionally but
didn't return, allowing execution to continue and potentially
complete the future again, causing index out of bounds (OOB) errors.

I also added respective unit tests.
@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.90%. Comparing base (52ba813) to head (43d0eeb).
⚠️ Report is 333 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3189      +/-   ##
============================================
+ Coverage     64.24%   69.90%   +5.65%     
- Complexity    10398    12812    +2414     
============================================
  Files           840      930      +90     
  Lines         71755    79009    +7254     
  Branches       8611     9434     +823     
============================================
+ Hits          46099    55230    +9131     
+ Misses        23004    20856    -2148     
- Partials       2652     2923     +271     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +75 to +76
assertTrue("Future should be completed exceptionally", getFuture.isCompletedExceptionally());
assertFalse("Future should not be completed normally", getFuture.isDone() && !getFuture.isCompletedExceptionally());
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: 2nd assert is redundant. we could just keep one of these asserts.

@satishkotha satishkotha merged commit 879e82d into linkedin:master Dec 19, 2025
5 checks passed
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