Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve][broker] make managedLedgerOffloadedReadPriority compatible with broker property #17803

Conversation

ethqunzhong
Copy link
Contributor

@ethqunzhong ethqunzhong commented Sep 22, 2022

Motivation

As #16436 supported setManagedLedgerOffloadedReadPriority by broker.conf.
I add an unit-test to verify offloadpolicy-brokerconf-compatibled that test failed, show as follow:
image

offloadedDataReadPriority excepted value is bookkeper-first from broker's property but get default value tiered-storage-first.

Modifications

Fix OffloadPoliciesImpl#getCompatibleValue logic: add broker's property managedLedgerDataReadPriority compatible.

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

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

Check the box below or label this PR directly.

Need to update docs?

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

Matching PR in forked repository

PR in forked repository: ethqunzhong#2

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 22, 2022
…hreshold-support-negative

Set namespace offload policy threshold support negative
@ethqunzhong ethqunzhong requested a review from HQebupt September 27, 2022 00:49
@ethqunzhong ethqunzhong requested a review from HQebupt October 8, 2022 11:20
@ethqunzhong ethqunzhong reopened this Oct 11, 2022
@ethqunzhong
Copy link
Contributor Author

i have add Matching PR in forked repository ethqunzhong#2
PTAL @Technoboy- @HQebupt @codelipenghui @Jason918 @zymap @hangc0276 @mattisonchao

@ethqunzhong
Copy link
Contributor Author

CI ALL passed: ethqunzhong#2
PTAL, thanks for your help.
@codelipenghui @lhotari @eolivelli @merlimat

@ethqunzhong ethqunzhong changed the title [fix][common] make managedLedgerOffloadedReadPriority compatible with broker property [improve][broker] make managedLedgerOffloadedReadPriority compatible with broker property Oct 13, 2022
@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@eolivelli
Copy link
Contributor

maybe you can rebase onto latest master

@ethqunzhong ethqunzhong force-pushed the bugfix-compatible-with-managedLedgerDataReadPriority branch from fc8be9e to 9d3a053 Compare October 13, 2022 11:56
@hangc0276
Copy link
Contributor

/pulsarbot rerun-failure-checks

1 similar comment
@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@ethqunzhong ethqunzhong force-pushed the bugfix-compatible-with-managedLedgerDataReadPriority branch from 9d3a053 to e5b3e24 Compare October 17, 2022 09:29
@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

3 similar comments
@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@ethqunzhong ethqunzhong force-pushed the bugfix-compatible-with-managedLedgerDataReadPriority branch from e5b3e24 to a6a69fd Compare October 18, 2022 09:27
@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

1 similar comment
@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@ethqunzhong ethqunzhong force-pushed the bugfix-compatible-with-managedLedgerDataReadPriority branch from a6a69fd to 14861ed Compare October 20, 2022 03:39
@ethqunzhong
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@codelipenghui codelipenghui added this to the 2.12.0 milestone Nov 1, 2022
@codelipenghui codelipenghui added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages area/broker labels Nov 1, 2022
@codelipenghui codelipenghui merged commit a4c6c41 into apache:master Nov 1, 2022
@momo-jun momo-jun added doc-complete Your PR changes impact docs and the related docs have been already added. and removed doc-not-needed Your PR changes do not impact docs labels Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker doc-complete Your PR changes impact docs and the related docs have been already added. type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants