Skip to content

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented Jul 23, 2025

Motivation

In PR #24515, a change was made to ManagedLedgerFactoryImpl for testing the changes by adding a new parameter "EntryCacheCreator" to ManagedLedgerFactoryImpl. This conflicts with #24363 changes and one of the conflicts is that the EntryCache instance isn't designed to be instantiated on it's own and I'd like to keep the implementation details in package protected classes. There would be unnecessary complexity just to support this particular testing use cases.
There's already a way to test such changes with the PulsarMockReadHandleInterceptor which is supported by PulsarMockBookKeeper. This is why adding the "EntryCacheCreator" is not necessary.

Modifications

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.33%. Comparing base (bbc6224) to head (b5ad714).
Report is 1220 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24552      +/-   ##
============================================
+ Coverage     73.57%   74.33%   +0.75%     
+ Complexity    32624    32587      -37     
============================================
  Files          1877     1874       -3     
  Lines        139502   146226    +6724     
  Branches      15299    16771    +1472     
============================================
+ Hits         102638   108692    +6054     
- Misses        28908    28909       +1     
- Partials       7956     8625     +669     
Flag Coverage Δ
inttests 26.74% <80.00%> (+2.15%) ⬆️
systests 23.34% <40.00%> (-0.98%) ⬇️
unittests 73.81% <100.00%> (+0.97%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...kkeeper/mledger/impl/ManagedLedgerFactoryImpl.java 59.29% <100.00%> (-22.10%) ⬇️
...keeper/mledger/impl/cache/RangeEntryCacheImpl.java 63.86% <ø> (+5.11%) ⬆️

... and 1111 files with indirect coverage changes

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

@BewareMyPower BewareMyPower merged commit 07af143 into apache:master Jul 24, 2025
234 of 242 checks passed
lhotari added a commit that referenced this pull request Jul 24, 2025
lhotari added a commit that referenced this pull request Jul 24, 2025
lhotari added a commit that referenced this pull request Jul 24, 2025
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 24, 2025
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 24, 2025
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Jul 28, 2025
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Jul 28, 2025
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 28, 2025
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 31, 2025
KannarFr pushed a commit to CleverCloud/pulsar that referenced this pull request Sep 22, 2025
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants