Skip to content

Support for multiple hosts in KafkaClient #69

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

Closed
wants to merge 6 commits into from

Conversation

mrtheb
Copy link
Collaborator

@mrtheb mrtheb commented Nov 10, 2013

This change breaks the KafkaClient constructor API but replacing the host and port parameters with hosts represented as a comma-separated list of host:port.

E.g.

kafka = KafkaClient("localhost:9092,localhost:9093")

It also introduces the mock library for unit testing.

Note: some unit tests are marked as skipped until disabling recursion on _load_metadata_for_topics, an issue I found during testing (#68).

@mrtheb
Copy link
Collaborator Author

mrtheb commented Nov 14, 2013

Build failed after appending a change not required for this fix, will submit a new pull from my master as branch is used for other stuff now.

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.

1 participant