Skip to content

README mentions partitions-for but it doesn't exist #5

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

Open
aaelony opened this issue Aug 24, 2016 · 1 comment
Open

README mentions partitions-for but it doesn't exist #5

aaelony opened this issue Aug 24, 2016 · 1 comment

Comments

@aaelony
Copy link

aaelony commented Aug 24, 2016

The README shows an example with (partitions-for p "test") but a clone and grep of the project lacks the defn for this entirely.

$  grep -Rn partitions-for *
README.md:146:    (partitions-for p "test")))
README.md:240:      (println "Topic Partitions for our topic:" (partitions-for c topic))
README.md:511:* If you already are inside a consumer or producer, `list-topics` and `partitions-for` return some information, based on the context.
src/franzy/clients/cluster.clj:91:(defn partitions-for-node
src/franzy/clients/cluster.clj:97:(defn partitions-for-topic
src/franzy/clients/consumer/client.clj:69:  (partitions-for [_ topic]
src/franzy/clients/producer/client.clj:80:  (partitions-for [_ topic]
test/franzy/clients/cluster_tests.clj:31:  (cluster/partitions-for-topic mock-cluster "fried-side-items") => [{:topic            "fried-side-items",
test/franzy/clients/cluster_tests.clj:92:  (let [partition-info-coll (cluster/partitions-for-node mock-cluster 1)]
test/franzy/clients/cluster_tests.clj:121:  (let [partition-info-coll (cluster/partitions-for-topic mock-cluster "excel-database")]

Perhaps a full namespace to look up the source would be useful?

@txbm
Copy link

txbm commented Feb 4, 2017

Franzy is broken up into several libraries, franzy-admin has what you're looking for.

https://github.com/ymilky/franzy-admin/blob/master/src/franzy/admin/partitions.clj#L12 @aaelony

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

No branches or pull requests

2 participants