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

bugfix for RackawareEnsemblePlacementPolicyImpl.isEnsembleAdheringToPlacementPolicy #2957

Closed

Conversation

StevenLuMT
Copy link
Member

@StevenLuMT StevenLuMT commented Dec 23, 2021

Descriptions of the changes in this PR:

Motivation

bugfix:
when enforceMinNumRacksPerWriteQuorum is false, no need to check racks in quorum
when all bookies is in a rack,when the old bookie node is offline for machine is broken,the ReplicationWorker want call method BookKeeperAdmin.getReplacementBookiesByIndexes, but find minNumRacksPerWriteQuorum(default value is 2) is large than racksInQuorum,but enforceMinNumRacksPerWriteQuorum(default value is false) is not open for checking this rack.

So I think we should charge enforceMinNumRacksPerWriteQuorum is closed,no need to check rack's information

image

image

case :

  1. minNumRacksPerWriteQuorum(default value is 2)
  2. enforceMinNumRacksPerWriteQuorum(default value is false)
  3. no rack config(just use default-rack)
    isEnsembleAdheringToPlacementPolicy will return false, then it will be unexpected

Changes

bugfix: when enforceMinNumRacksPerWriteQuorum is false, no need to check racks in quorum

when enforceMinNumRacksPerWriteQuorum is false, no need to check racks in quorum
@StevenLuMT
Copy link
Member Author

@eolivelli @pkumar-singh @zymap
If you have time, please help me review it, thank you

@zymap
Copy link
Member

zymap commented Jan 17, 2022

https://github.com/apache/bookkeeper/pull/1941/files#r258714042 Here has a discussion about this issue.

@StevenLuMT
Copy link
Member Author

https://github.com/apache/bookkeeper/pull/1941/files#r258714042 Here has a discussion about this issue.

case :

  1. minNumRacksPerWriteQuorum(default value is 2)
  2. enforceMinNumRacksPerWriteQuorum(default value is false)
  3. no rack config(just use default-rack)
    isEnsembleAdheringToPlacementPolicy will return false, then it will be unexpected
    @jvrao @reddycharan @zymap

@StevenLuMT StevenLuMT closed this Aug 25, 2022
@StevenLuMT StevenLuMT reopened this Aug 25, 2022
@StevenLuMT
Copy link
Member Author

Temporarily close first, and reopen after improvement

@StevenLuMT StevenLuMT closed this Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants