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


##########
core/src/main/java/kafka/server/share/SharePartition.java:
##########
@@ -181,6 +181,11 @@ public static RecordState forId(byte id) {
      */
     private final TopicIdPartition topicIdPartition;
 
+    /**
+     * The leader epoch is used to track the partition epoch.
+     */
+    private final int leaderEpoch;

Review Comment:
   Yeah, it's for share partition life time. We are marking the Share Partition 
fenced and un-usable if an error occurs. Which means the state should be 
re-loaded from the persister to function ahead.



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