GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl by lhotari · Pull Request #24552 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented Jul 23, 2025

Copy link
Copy Markdown
Member

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

  • revert the changes to add "EntryCacheCreator" to ManagedLedgerFactoryImpl.
  • migrate the test added in [fix][ml] Fix asyncReadEntries might never complete if empty entries are read from BK #24515 to use PulsarMockReadHandleInterceptor

Documentation

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
lhotari added 2 commits July 23, 2025 20:45
@lhotari
Revert changes to add entryCacheManagerCreator
10ac8a6
@lhotari
Migrate test to use PulsarMockReadHandleInterceptor
b5ad714
@lhotari lhotari added this to the 4.1.0 milestone Jul 23, 2025
@lhotari
lhotari requested review from BewareMyPower, merlimat and poorbarcode July 23, 2025 18:06
@lhotari lhotari self-assigned this Jul 23, 2025
@lhotari lhotari added the ready-to-test label Jul 23, 2025
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jul 23, 2025
This was referenced Jul 23, 2025
[fix][ml] Fix asyncReadEntries might never complete if empty entries are read from BK #24515
Merged
[refactor][ml] Replace cache eviction algorithm with centralized removal queue and job #24363
Merged
lhotari added a commit to lhotari/pulsar that referenced this pull request Jul 23, 2025
@lhotari
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
d52dfa8
apache#24552)
BewareMyPower
BewareMyPower approved these changes Jul 24, 2025
View reviewed changes
dao-jun
dao-jun approved these changes Jul 24, 2025
View reviewed changes
@codecov-commenter

codecov-commenter commented Jul 24, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.33%. Comparing base (bbc6224) to head (b5ad714).
⚠️ Report is 1765 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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BewareMyPower
BewareMyPower merged commit 07af143 into apache:master Jul 24, 2025
@lhotari lhotari added release/3.3.7 release/3.0.13 release/4.0.6 release/3.3.8 and removed release/3.3.7 labels Jul 24, 2025
lhotari added a commit that referenced this pull request Jul 24, 2025
@lhotari
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
05ea80c
#24552)

(cherry picked from commit 07af143)
@lhotari lhotari added the cherry-picked/branch-3.0 label Jul 24, 2025
lhotari added a commit that referenced this pull request Jul 24, 2025
@lhotari
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
a75455a
#24552)

(cherry picked from commit 07af143)
lhotari added a commit that referenced this pull request Jul 24, 2025
@lhotari
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
288633b
#24552)

(cherry picked from commit 07af143)
@lhotari lhotari added cherry-picked/branch-4.0 cherry-picked/branch-3.3 labels Jul 24, 2025
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 24, 2025
@lhotari @priyanshu-ctds
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
ce81f49
apache#24552)

(cherry picked from commit 07af143)
(cherry picked from commit 288633b)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 24, 2025
@lhotari @srinath-ctds
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
ef9f4f7
apache#24552)

(cherry picked from commit 07af143)
(cherry picked from commit 288633b)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Jul 28, 2025
@lhotari @nodece
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
49f8723
apache#24552)

(cherry picked from commit 07af143)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Jul 28, 2025
@lhotari @nodece
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
90bc256
apache#24552)

(cherry picked from commit 07af143)
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 28, 2025
@lhotari @priyanshu-ctds
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
5c06476
apache#24552)

(cherry picked from commit 07af143)
(cherry picked from commit 05ea80c)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 31, 2025
@lhotari @srinath-ctds
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
17f1275
apache#24552)

(cherry picked from commit 07af143)
(cherry picked from commit 05ea80c)
KannarFr pushed a commit to CleverCloud/pulsar that referenced this pull request Sep 22, 2025
@lhotari @KannarFr
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
185c646
apache#24552)
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
@lhotari @walkinggo
[improve][test] Remove EntryCacheCreator from ManagedLedgerFactoryImpl (
1c43925
apache#24552)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@BewareMyPower BewareMyPower BewareMyPower approved these changes
@dao-jun dao-jun dao-jun approved these changes
@merlimat merlimat Awaiting requested review from merlimat
@poorbarcode poorbarcode Awaiting requested review from poorbarcode

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lhotari lhotari

Labels

cherry-picked/branch-3.0 cherry-picked/branch-3.3 cherry-picked/branch-4.0 doc-not-needed Your PR changes do not impact docs ready-to-test release/3.0.13 release/3.3.8 release/4.0.6

Projects

None yet

Milestone

4.1.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@lhotari @codecov-commenter @BewareMyPower @dao-jun
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.