chia7712 commented on a change in pull request #9758:
URL: https://github.com/apache/kafka/pull/9758#discussion_r585221282



##########
File path: core/src/test/scala/unit/kafka/server/AbstractFetcherThreadTest.scala
##########
@@ -1144,8 +1143,14 @@ class AbstractFetcherThreadTest {
           (Errors.NONE, records)
         }
 
-        (partition, new FetchData(error, leaderState.highWatermark, 
leaderState.highWatermark, leaderState.logStartOffset,
-          Optional.empty[Integer], List.empty.asJava, divergingEpoch.asJava, 
records))
+        (partition, new FetchResponseData.PartitionData()
+          .setErrorCode(error.code)
+          .setHighWatermark(leaderState.highWatermark)
+          .setLastStableOffset(leaderState.highWatermark)
+          .setLogStartOffset(leaderState.logStartOffset)
+          .setAbortedTransactions(Collections.emptyList())
+          .setRecords(records)
+          .setDivergingEpoch(divergingEpoch.getOrElse(new 
FetchResponseData.EpochEndOffset)))

Review comment:
       the type `FetchablePartitionResponse` is gone and the replacement 
`FetchResponseData.PartitionData` (generated data) can't accept `Optional` type.
   




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

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


Reply via email to