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

Honor goals when increasing topic replication factor. #789

Merged
merged 2 commits into from
Jul 10, 2019

Conversation

kidkun
Copy link

@kidkun kidkun commented Jun 21, 2019

Fix issue #713 and issue #722

@kidkun kidkun requested a review from efeg June 21, 2019 05:37
Copy link
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

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

Thanks for the patch! Started the review and left some initial comments.

@kidkun kidkun force-pushed the rf_change_improvement branch from d2bf5de to a5a9060 Compare June 22, 2019 06:20
Copy link
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

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

Thanks for the updates -- added more comments.

Copy link
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

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

Thanks for the updates! Left some comments.

Copy link
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

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

Thanks for the updates! Left more comments.

@kidkun kidkun force-pushed the rf_change_improvement branch from cce2958 to 380dd08 Compare June 28, 2019 17:24
Copy link
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

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

Thanks for updates -- left some comments.

// Satisfy rack awareness requirement.
SortedSet<Replica> replicas = new TreeSet<>(broker.replicas());
for (Replica replica : replicas) {
if ((broker.isAlive() && satisfiedRackAwareness(replica, clusterModel))
|| shouldExclude(replica, excludedTopics)) {
|| shouldExclude(replica, excludedTopics)
|| (onlyMoveImmigrantReplicas && !replica.isImmigrant())) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good! -- thanks for creating #802

Copy link
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

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

Thanks for the update -- added a comment.

@kidkun kidkun force-pushed the rf_change_improvement branch from f5e593f to 2485ce3 Compare July 9, 2019 22:19
Copy link
Collaborator

@efeg efeg left a comment

Choose a reason for hiding this comment

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

LGTM

@kidkun kidkun merged commit 4b2b2f4 into linkedin:master Jul 10, 2019
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