jeffkbkim commented on code in PR #14985: URL: https://github.com/apache/kafka/pull/14985#discussion_r1433038616
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/runtime/SnapshottableCoordinator.java: ########## @@ -111,6 +112,22 @@ public synchronized void replay( coordinator.replay(producerId, producerEpoch, record); } + /** + * Applies the transaction end marker. Review Comment: nit: end transaction marker ########## core/src/main/scala/kafka/coordinator/group/CoordinatorLoaderImpl.scala: ########## @@ -135,7 +136,22 @@ class CoordinatorLoaderImpl[T]( memoryRecords.batches.forEach { batch => if (batch.isControlBatch) { - throw new IllegalStateException("Control batches are not supported yet.") + batch.asScala.foreach { record => + val controlRecord = ControlRecordType.parse(record.key) + if (controlRecord == ControlRecordType.COMMIT) { + coordinator.replayTransactionEndMarker( Review Comment: can we rename all `replayTransactionEndMarker` to `replayEndTransactionMarker`? -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org