onyx-platform/onyx-kafka

NPE caused by missing either :onyx/n-peers or :onyx/max-peers

kennyjwilli opened this issue · 1 comments

I think the docs on onyx-kafka should mention which keys are required. I just ran into a NPE due to not having set :onyx/n-peers or :onyx/max-peers caused by:

n-peers-less-eq-n-partitions (and n-peers (<= n-peers n-partitions))]

It would've been helpful to have known I need to specify one of those.

Fixed in master. The problem was in the condition that checked whether min-peers = max-peers, as both were nil, and it was allowed rather than specifying that one must be set.