Skip to content

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

Merged
eolivelli merged 5 commits into
apache:masterfrom
aloyszhang:rackaware-delete
Feb 15, 2022
Merged

fix rackaware placement policy does not take effect after delete rack configuration #14248
eolivelli merged 5 commits into
apache:masterfrom
aloyszhang:rackaware-delete

Conversation

@aloyszhang

@aloyszhang aloyszhang commented Feb 11, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown

@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
Copy Markdown

@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
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang
aloyszhang requested a review from eolivelli February 13, 2022 02:03

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang
aloyszhang requested a review from hangc0276 February 14, 2022 15:21
@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