gardnervickers commented on a change in pull request #7929:
URL: https://github.com/apache/kafka/pull/7929#discussion_r441719784



##########
File path: core/src/main/scala/kafka/log/ProducerStateManager.scala
##########
@@ -751,6 +751,25 @@ class ProducerStateManager(val topicPartition: 
TopicPartition,
       None
   }
 
-  private def listSnapshotFiles: Seq[File] = 
ProducerStateManager.listSnapshotFiles(logDir)
+  private[log] def listSnapshotFiles: Seq[File] = 
ProducerStateManager.listSnapshotFiles(logDir)
 
+  /**
+   * Remove any producer state snapshot files which do not have a 
corresponding offset provided
+   * in keepOffsets. The latest snapshot file will always be kept.

Review comment:
       This should be `segmentBaseOffsets`, thanks!




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