Skip to content

Conversation

@zymap
Copy link
Member

@zymap zymap commented Jun 24, 2025


Motivation

When do some expirmental changes with the managed ledger, we need to access the lock fields in the sub-class. Change the field scope to allow this happen.

Fixes #xyz

Main Issue: #xyz

PIP: #xyz

Motivation

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

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

Matching PR in forked repository

PR in forked repository:

---

### Motivation

When do some expirmental changes with the managed ledger, we need
to access the lock fields in the sub-class. Change the field scope
to allow this happen.
@zymap zymap requested review from hangc0276 and horizonzy June 24, 2025 03:46
@zymap zymap self-assigned this Jun 24, 2025
@zymap zymap added area/broker type/refactor Code or documentation refactors. e.g. refactor code structure or methods to improve code readability labels Jun 24, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 24, 2025
@zymap zymap added release/4.0.6 and removed doc-not-needed Your PR changes do not impact docs labels Jun 24, 2025
@zymap zymap added this to the 4.1.0 milestone Jun 24, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 24, 2025
Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

LGTM.

@zymap zymap changed the title [refactor][broker] Expose the field for the sub class [refactor][broker] Expose the managedLedger field for the sub class Jun 24, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.31%. Comparing base (bbc6224) to head (7e382e1).
Report is 1166 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24448      +/-   ##
============================================
+ Coverage     73.57%   74.31%   +0.74%     
- Complexity    32624    32752     +128     
============================================
  Files          1877     1868       -9     
  Lines        139502   145501    +5999     
  Branches      15299    16643    +1344     
============================================
+ Hits         102638   108130    +5492     
+ Misses        28908    28806     -102     
- Partials       7956     8565     +609     
Flag Coverage Δ
inttests 26.69% <100.00%> (+2.11%) ⬆️
systests 23.34% <100.00%> (-0.98%) ⬇️
unittests 73.80% <100.00%> (+0.95%) ⬆️

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

Files with missing lines Coverage Δ
...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java 81.17% <100.00%> (+0.50%) ⬆️

... and 1085 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.

@hangc0276 hangc0276 merged commit 7cd9410 into apache:master Jun 25, 2025
73 of 79 checks passed
hangc0276 pushed a commit that referenced this pull request Jun 25, 2025
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 27, 2025
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 30, 2025
KannarFr pushed a commit to CleverCloud/pulsar that referenced this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker cherry-picked/branch-4.0 doc-not-needed Your PR changes do not impact docs ready-to-test release/4.0.6 type/refactor Code or documentation refactors. e.g. refactor code structure or methods to improve code readability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants