dajac commented on code in PR #14985: URL: https://github.com/apache/kafka/pull/14985#discussion_r1432348819
########## group-coordinator/src/test/java/org/apache/kafka/coordinator/group/GroupCoordinatorShardTest.java: ########## @@ -968,4 +971,34 @@ public void testCleanupGroupMetadata() { verify(groupMetadataManager, times(1)).maybeDeleteGroup(eq("group-id"), any()); verify(groupMetadataManager, times(0)).maybeDeleteGroup(eq("other-group-id"), any()); } + + @ParameterizedTest + @EnumSource(value = TransactionResult.class) + public void testReplayTransactionEndMarker(TransactionResult result) { + GroupMetadataManager groupMetadataManager = mock(GroupMetadataManager.class); + OffsetMetadataManager offsetMetadataManager = mock(OffsetMetadataManager.class); + CoordinatorMetrics coordinatorMetrics = mock(CoordinatorMetrics.class); + CoordinatorMetricsShard metricsShard = mock(CoordinatorMetricsShard.class); + GroupCoordinatorShard coordinator = new GroupCoordinatorShard( + new LogContext(), + groupMetadataManager, + offsetMetadataManager, + Time.SYSTEM, + new MockCoordinatorTimer<>(Time.SYSTEM), + mock(GroupCoordinatorConfig.class), + coordinatorMetrics, + metricsShard + ); + + coordinator.replayTransactionEndMarker( + 100L, + (short) 5, Review Comment: nope. however, i think that it should be part of the coordinator shard interface to be consistent. -- 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