UladzislauBlok commented on code in PR #21515:
URL: https://github.com/apache/kafka/pull/21515#discussion_r2838146099


##########
streams/src/main/java/org/apache/kafka/streams/state/internals/ValueTimestampHeadersDeserializer.java:
##########
@@ -127,11 +132,12 @@ static <T> T value(final byte[] rawValueTimestampHeaders, 
final Deserializer<T>
 
         final ByteBuffer buffer = ByteBuffer.wrap(rawValueTimestampHeaders);
         final int headersSize = ByteUtils.readVarint(buffer);
-        // skip headers plus timestamp
-        buffer.position(buffer.position() + headersSize + Long.BYTES);
+        final byte[] rawHeaders = readBytes(buffer, headersSize);
+        final Headers headers = HeadersDeserializer.deserialize(rawHeaders);
+        buffer.position(buffer.position() + Long.BYTES); // skip timestamp
         final byte[] bytes = readBytes(buffer, buffer.remaining());
 
-        return deserializer.deserialize("", bytes);
+        return deserializer.deserialize("", headers, bytes);

Review Comment:
   This method was added two weeks ago as part of #21408 
   I assume it was created for future use—is that correct?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to