Thanks Omer for answer. It helps to understand. Couple of follow up questions
1. Is there a way to confirm this using any kafka logs (message with encrypted info).
2. Is this error intermittent or happens always? Because I do see plaintext calls succeed for the same client and topic
Regards,
Nanda
-----Original Message-----
From: Ömer Şiar Baysal < osiarbaysal@gmail.com >
Sent: Thursday, May 29, 2025 1:19 PM
To: users@kafka.apache.org
Cc: rradutiu@gmail.com
Subject: Re: [EXTERNAL] Re: What config to avoid outofmemory exceptions happening in kafka server logs
Hi,
This is a known issue,
https://issues.apache.org/jira/plugins/servlet/mobile#issue/KAFKA-4493
Basically when broker receives first few bytes of the encrypted message on its plaintext listener, it may end up trying to allocate a huge buffer for the message, because it assumes the received bytes are for plaintext listener. Since encrypted message is no longer a clear text, its first 4 byte...