Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am facing some issues while decoding Avro encoded messages.
Here is some information about my application/issue:
I would appreciate any comments/feedback on this issue.
Hello @mannanrehbari ,
Welcome to Qlik Community forum and thanks for reaching out here!
You need to use Qlik Replicate AvroDecoderSDK, for example QlikReplicate_2023.11.0.468_AvroDecoderSDK.zip for Replicate 2023.11.
Hope this helps.
John.
Hey @john_wang ,
Thank you for your response. That is the exact SDK we are using for decoding the messages. Again, it works fine until the length of record.value() gets larger than 8192. It fails on larger messages. Is it expected to decode larger messages by default?
The SDK internally uses Avro's DecoderFactory which has a DEFAULT_BUFFER_SIZE = 8192.
BinaryDecoder messageDecoder = DecoderFactory.get().binaryDecoder(messageBytes, null);
Following this method, it calls configureSource() method within BinaryDecoder class with the above hardcoded fixed value.
Hello @mannanrehbari ,
Thank you so much for the detailed information. Please raise a support ticket and provide a piece of code, our support will be more than happy to help you further.
Regards,
John.