Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Right now in the RPC definition, type bytes would be translated into byte[] in generated Java code. However, for some requests like ProduceRequest#partitionData, the underlying type would better be a ByteBuffer rather than a byte array.
One proposal is to add an additional boolean tag useByteBuffer for bytes type, which by default is false; when set to true set the corresponding field to generate ByteBuffer instead of []byte.
Attachments
Issue Links
- is related to
-
KAFKA-8628 Auto-generated Kafka RPC code should be able to use zero-copy ByteBuffers
- Open
- links to