Skip to content

[fix][broker] Merge broker offload extra configurations - #25736

Merged
nodece merged 1 commit into
apache:masterfrom
coderzc:codex/fix-offload-extra-config-merge
May 12, 2026
Merged

[fix][broker] Merge broker offload extra configurations#25736
nodece merged 1 commit into
apache:masterfrom
coderzc:codex/fix-offload-extra-config-merge

Conversation

@coderzc

@coderzc coderzc commented May 11, 2026

Copy link
Copy Markdown
Member

Motivation

OffloadPoliciesImpl.create(Properties) recognizes broker config entries with the managedLedgerOffloadExtraConfig prefix and stores them in managedLedgerExtraConfigurations.

However, OffloadPoliciesImpl.mergeConfiguration(...) did not apply the same parsing when broker properties were used as the fallback layer. As a result, applied offload policies could omit broker-level extra offloader configuration.

Modifications

  • Reuse a helper to parse managedLedgerOffloadExtraConfig* entries from Properties.
  • Apply that parsing in mergeConfiguration(...) for managedLedgerExtraConfigurations.
  • Add tests for broker-level extra config merge and higher-level overrides, including empty-string override.

Verifying this change

  • ./gradlew :pulsar-common:test --tests org.apache.pulsar.common.policies.data.OffloadPoliciesTest

@coderzc coderzc changed the title [fix][common] Merge broker offload extra configurations [fix][broker] Merge broker offload extra configurations May 11, 2026
@nodece
nodece merged commit bb52957 into apache:master May 12, 2026
45 of 47 checks passed
@coderzc coderzc added type/bug The PR fixed a bug or issue reported a bug area/broker release/4.2.2 release/4.0.11 labels May 12, 2026
coderzc added a commit that referenced this pull request May 13, 2026
nodece pushed a commit to ascentstream/pulsar that referenced this pull request May 27, 2026
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 9, 2026
(cherry picked from commit bb52957)
(cherry picked from commit d86cda8)
@lhotari lhotari added this to the 5.0.0-M1 milestone Jun 12, 2026
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.

5 participants