Skip to content

[improve] Change PersistentMessageFinder's fields modifier to reuse in plugins - #24308

Merged
dao-jun merged 2 commits into
apache:masterfrom
dao-jun:dev/persistent_finder_modifier
May 16, 2025
Merged

dao-jun merged 2 commits into
apache:masterfrom
dao-jun:dev/persistent_finder_modifier

Conversation

@dao-jun

@dao-jun dao-jun commented May 15, 2025

Copy link
Copy Markdown
Member

Motivation

Change PersistentMessageFinder's fields modifier to protected, so we can reuse/rewrite the class in protocolhandlers, such as KoP.

Modifications

Change PersistentMessageFinder's fields modifier to protected.

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

@dao-jun dao-jun self-assigned this May 15, 2025
@dao-jun
dao-jun requested review from lhotari and nodece May 15, 2025 09:23
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label May 15, 2025
@dao-jun
dao-jun requested a review from liudezhi2098 May 15, 2025 09:23
@dao-jun dao-jun added this to the 4.1.0 milestone May 15, 2025
@dao-jun dao-jun changed the title Change PersistentMessageFinder's fields modifier to reuse in plugins [misc] Change PersistentMessageFinder's fields modifier to reuse in plugins May 15, 2025
@dao-jun dao-jun closed this May 15, 2025
@dao-jun dao-jun reopened this May 15, 2025
@dao-jun dao-jun changed the title [misc] Change PersistentMessageFinder's fields modifier to reuse in plugins [fix] Change PersistentMessageFinder's fields modifier to reuse in plugins May 15, 2025
@dao-jun dao-jun changed the title [fix] Change PersistentMessageFinder's fields modifier to reuse in plugins [improve] Change PersistentMessageFinder's fields modifier to reuse in plugins May 15, 2025
@codecov-commenter

codecov-commenter commented May 15, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 74.24%. Comparing base (bbc6224) to head (4cd6729).
Report is 1103 commits behind head on master.

Files with missing lines Patch % Lines
...er/service/persistent/PersistentMessageFinder.java 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24308      +/-   ##
============================================
+ Coverage     73.57%   74.24%   +0.67%     
+ Complexity    32624    32618       -6     
============================================
  Files          1877     1866      -11     
  Lines        139502   145075    +5573     
  Branches      15299    16585    +1286     
============================================
+ Hits         102638   107717    +5079     
+ Misses        28908    28834      -74     
- Partials       7956     8524     +568     
Flag Coverage Δ
inttests 26.64% <66.66%> (+2.05%) ⬆️
systests 23.30% <66.66%> (-1.02%) ⬇️
unittests 73.73% <66.66%> (+0.88%) ⬆️

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

Files with missing lines Coverage Δ
...er/service/persistent/PersistentMessageFinder.java 75.71% <66.66%> (+9.80%) ⬆️

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

@nodece nodece left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Changing the PersistentMessageFinder fields to protected isn't ideal from an encapsulation perspective, but it's acceptable to support downstream extensions.

@dao-jun
dao-jun merged commit fba9126 into apache:master May 16, 2025
@dao-jun
dao-jun deleted the dev/persistent_finder_modifier branch May 16, 2025 06:54
dao-jun added a commit to ascentstream/pulsar that referenced this pull request May 16, 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
dao-jun added a commit to ascentstream/pulsar that referenced this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants