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

fix rackaware placement policy does not take effect after delete rack configuration #14248

Merged
merged 5 commits into from
Feb 15, 2022

Conversation

aloyszhang
Copy link
Contributor

@aloyszhang aloyszhang commented Feb 11, 2022

Fixes #14247

Motivation

fix rack aware placement policy does not take effect after deleting rack configuration

Modifications

  1. when bookie's rack configuration is deleted, notify EnsemblePlacementPolicy the delete change
  2. add test for rack update

Verifying this change

This change added tests and can be verified as follows: RackAwareTest.testRackUpdate()

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

  • no-need-doc

    (Please explain why)

@github-actions
Copy link

@aloyszhang:Thanks for your contribution. For this PR, do we need to update docs?
(The PR template contains info about doc, which helps others know more about the changes. Can you provide doc-related info in this and future PR descriptions? Thanks)

@aloyszhang aloyszhang added this to the 2.10.0 milestone Feb 11, 2022
@github-actions
Copy link

@aloyszhang:Thanks for providing doc info!

@github-actions github-actions bot added doc-not-needed Your PR changes do not impact docs and removed doc-label-missing labels Feb 11, 2022
@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

+1

@codelipenghui codelipenghui modified the milestones: 2.10.0, 2.11.0 Feb 14, 2022
@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

@eolivelli eolivelli merged commit 891a98d into apache:master Feb 15, 2022
@codelipenghui codelipenghui modified the milestones: 2.11.0, 2.10.0 Feb 17, 2022
@aloyszhang aloyszhang deleted the rackaware-delete branch February 28, 2022 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete rack configurations does not take effect for RackAware Placement Policy
4 participants