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: Remove dupeAndSort in Replicas and InSyncReplicas #930

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

git-hulk
Copy link
Contributor

It shouldn't sort the replicas and isr while the order is meaningful to Kafka(preferred leader)

@eapache
Copy link
Contributor

eapache commented Aug 11, 2017

Hmm, I'm not sure why I originally added this logic. The sorting does seem incorrect.

Creating a copy of the array is a good practice for API safety though to avoid complications when callers mutate the result. Please leave the duplication part in place.

@git-hulk git-hulk force-pushed the Fix/remove-depeAndSort branch from 4b5702e to 240ddc7 Compare August 12, 2017 04:15
@git-hulk
Copy link
Contributor Author

@eapache Fixed and rebased, thanks for the review.

@eapache
Copy link
Contributor

eapache commented Aug 14, 2017

Thanks!

@eapache eapache merged commit 3fee590 into IBM:master Aug 14, 2017
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