apoorvmittal10 commented on code in PR #17965:
URL: https://github.com/apache/kafka/pull/17965#discussion_r1868544218


##########
core/src/main/java/kafka/server/share/SharePartition.java:
##########
@@ -2189,12 +2188,16 @@ long lastOffset() {
             return lastOffset;
         }
 
-        // Visible for testing.
-        RecordState batchState() {
+        private InFlightState inFlightState() {
             if (batchState == null) {
                 throw new IllegalStateException("The batch state is not 
available as the offset state is maintained");
             }
-            return batchState.state;
+            return batchState;
+        }
+
+        // Visible for testing.
+        RecordState batchState() {

Review Comment:
   Got it: https://github.com/apache/kafka/pull/17965#discussion_r1868249471



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