jackdaw

https://github.com/FundingCircle/jackdaw
rmxm 2020-02-11T16:09:38.059500Z

Hi quick question, I am trying to run client example from: https://cljdoc.org/d/fundingcircle/jackdaw/0.7.1/doc/jackdaw-client-api#producing however, first I run into a problem of missing key.serializer and value.serializer, but I append the config with "org.apache.kafka.common.serialization.StringSerializer"... However I still keep getting error: Topic cannot be null. Well I have auto-creation enabled, but nonetheless I go and create topic with cli kafka-topics and it still says null, so I presume it resolves to null prior to hitting kafka.

2020-02-11T16:40:33.060200Z

Ah there might be a bug in that example. In place of "foo", please try {:topic-name "foo"}.

rmxm 2020-02-11T16:44:09.061Z

excellent, I went alone groking Producer records 🙂 and yes works this way thanks

2020-02-11T16:44:37.061500Z

I'll get the documentation updated. Thanks for letting us know the problem

rmxm 2020-02-11T16:46:14.061700Z

already posted PR: https://github.com/FundingCircle/jackdaw/pull/228

🐐 1
2020-02-11T16:52:17.062Z

Don't worry about that failure. I hit re-run to get a passing build. I thought I'd fixed the flakeyness in that test but obviously not. I'll need to revisit 😞

thom 2020-02-11T21:53:31.063200Z

how do I give a mock producer the types of keys/values? Not sure to do it without generics

2020-02-11T21:58:46.063800Z

I think you shouldn't need to do that. Do you have some code that doesn't work without it?

2020-02-11T22:05:45.064800Z

Oh maybe I'm mistakenly assuming your "system under test" is a kafka streams app?

thom 2020-02-11T22:07:22.066100Z

so by virtue of saying it out loud I have now realised that the mock topics haven't got my serdes merged in

👍 1