Friends,
I'm using JMeter 5.6 with KLoadGen.
I'm trying to configure a producer to use Avro for the value but string
serializer for the key. Is that supported? It works fine from my java code
but the plugin doesn't like it.
My config has schema registry, producer, and KLG - Value Schema Serializer
Config, which seems to be the value. In addition, I've tried no key
serializer, KLG - Key Schema Serializer Config (but I don't really want this,)
and KLG - Simple Key Config.
With KLG - Simple Key Config, I tried setting the key class type to string and
the serializer to StringSerializer. In this case, I get this partial stack
trace:
com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer
at
com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(SamplerUtil.java:427)
~[kloadgen-5.6.12.jar:?]
at
com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaProducerSampler.java:73)
~[kloadgen-5.6.12.jar:?]
I get that same error with no key serializer at all.
With the key schema serialization config, I get the same message but from a
different location in the code:
com.sngular.kloadgen.exception.KLoadGenException: Unsupported Serializer
at
com.sngular.kloadgen.sampler.SamplerUtil.getBaseLoadGenerator(SamplerUtil.java:471)
~[kloadgen-5.6.12.jar:?]
at
com.sngular.kloadgen.sampler.SamplerUtil.configureKeyGenerator(SamplerUtil.java:425)
~[kloadgen-5.6.12.jar:?]
at
com.sngular.kloadgen.sampler.KafkaProducerSampler.setupTest(KafkaProducerSampler.java:73)
~[kloadgen-5.6.12.jar:?]
What am I doing wrong?
Thanks