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



##########
File path: core/src/test/scala/unit/kafka/server/FetchSessionTest.scala
##########
@@ -534,15 +588,21 @@ class FetchSessionTest {
       Optional.empty()))
     val session2context = fetchManager.newContext(JFetchMetadata.INITIAL, 
session1req, EMPTY_PART_LIST, false)
     assertEquals(classOf[FullFetchContext], session2context.getClass)
-    val session2RespData = new util.LinkedHashMap[TopicPartition, 
FetchResponse.PartitionData[Records]]
-    session2RespData.put(new TopicPartition("foo", 0), new 
FetchResponse.PartitionData(
-      Errors.NONE, 100, 100, 100, null, null))
-    session2RespData.put(new TopicPartition("foo", 1), new 
FetchResponse.PartitionData(
-      Errors.NONE, 10, 10, 10, null, null))
+    val session2RespData = new util.LinkedHashMap[TopicPartition, 
FetchResponseData.PartitionData]
+    session2RespData.put(new TopicPartition("foo", 0),
+      new FetchResponseData.PartitionData()
+        .setHighWatermark(100)
+        .setLastStableOffset(100)
+        .setLogStartOffset(100))
+    session2RespData.put(new TopicPartition("foo", 1),
+      new FetchResponseData.PartitionData()
+        .setHighWatermark(10)

Review comment:
       good catch. will fix all similar issues in next commit.




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to