Skip to content

Conversation

@kuznetsss
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@mathbunnyru mathbunnyru left a comment

Choose a reason for hiding this comment

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

Could you please add a test, which fails on develop, but works in this branch? (and check it in develop)

@codecov
Copy link

codecov bot commented Jul 15, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.45%. Comparing base (d43002b) to head (eadb8f3).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/util/BlockingCache.hpp 81.81% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2333      +/-   ##
===========================================
- Coverage    79.45%   79.45%   -0.01%     
===========================================
  Files          378      378              
  Lines        15373    15375       +2     
  Branches      7748     7749       +1     
===========================================
+ Hits         12215    12216       +1     
  Misses        1962     1962              
- Partials      1196     1197       +1     

☔ 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.

@kuznetsss
Copy link
Collaborator Author

The bug was happening because result and timer were accessed for writing when they are already destroyed. But this only happens when multiple coroutines are accessing the cache simultaneously with the right timing. I don't think we can reproduce this in test.

Copy link
Collaborator

@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

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

I agree with @mathbunnyru that it would be nice to add a test for this fix. But i also recall it was not very easy to even reproduce, right?

@kuznetsss kuznetsss requested a review from mathbunnyru July 17, 2025 15:52
@mathbunnyru
Copy link
Collaborator

I agree with @mathbunnyru that it would be nice to add a test for this fix. But i also recall it was not very easy to even reproduce, right?

@kuznetsss could you please answer here?
Just for the history, why we're not adding the test

@kuznetsss
Copy link
Collaborator Author

kuznetsss commented Jul 18, 2025

I already answered:

I don't think we can reproduce this in test.

@kuznetsss kuznetsss merged commit 61c1740 into XRPLF:develop Jul 21, 2025
28 checks passed
@kuznetsss kuznetsss deleted the Fix_blocking_cache_bug branch July 21, 2025 11:16
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.

3 participants