rreddy-22 commented on code in PR #20868:
URL: https://github.com/apache/kafka/pull/20868#discussion_r2520494830


##########
clients/src/test/java/org/apache/kafka/common/requests/RequestResponseTest.java:
##########
@@ -2827,7 +2827,7 @@ private EndTxnResponse createEndTxnResponse() {
     private WriteTxnMarkersRequest createWriteTxnMarkersRequest(short version) 
{
         List<TopicPartition> partitions = singletonList(new 
TopicPartition("topic", 73));
         WriteTxnMarkersRequest.TxnMarkerEntry txnMarkerEntry = new 
WriteTxnMarkersRequest.TxnMarkerEntry(21L, (short) 42, 73, 
TransactionResult.ABORT, partitions);
-        return new 
WriteTxnMarkersRequest.Builder(singletonList(txnMarkerEntry)).build(version);
+        return new 
WriteTxnMarkersRequest.Builder(singletonList(txnMarkerEntry), 
null).build(version);

Review Comment:
   Yes that's a valid point! I checked the usage of this method and it's only 
used in the serialization test. When we use null we basically fill up TV with 
default values so thought it should be okay here. I could add a singleton list 
with tv0 too if that's better. What do you think?



-- 
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