brandboat commented on code in PR #18510:
URL: https://github.com/apache/kafka/pull/18510#discussion_r2019674728
##########
tools/src/test/java/org/apache/kafka/tools/consumer/group/share/ShareGroupStateMessageFormatterTest.java:
##########
@@ -164,12 +164,16 @@ private static Stream<Arguments> exceptions() {
Arguments.of(
MessageUtil.toVersionPrefixedByteBuffer((short) 0,
SHARE_SNAPSHOT_KEY).array(),
MessageUtil.toVersionPrefixedByteBuffer((short) 0,
SHARE_UPDATE_VALUE).array(),
- new RuntimeException("non-nullable field stateBatches was
serialized as null")
+ new RuntimeException("Could not read record at offset 0 due
to: " +
+ "Could not read record with version 0 from value's
buffer due to: " +
+ "non-nullable field stateBatches was serialized as
null.")
),
Arguments.of(
MessageUtil.toVersionPrefixedByteBuffer((short) 1,
SHARE_UPDATE_KEY).array(),
MessageUtil.toVersionPrefixedByteBuffer((short) 0,
SHARE_SNAPSHOT_VALUE).array(),
- new RuntimeException("non-nullable field stateBatches was
serialized as null")
+ new RuntimeException("Could not read record at offset 0 due
to: " +
+ "Could not read record with version 0 from value's
buffer due to: " +
+ "non-nullable field stateBatches was serialized as
null.")
)
);
}
Review Comment:
Thank you! I've addressed all the comments!
--
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]