@Override
    public void replayEndTransactionMarker(
        long producerId,
        short producerEpoch,
        TransactionResult result
    ) throws RuntimeException {
        offsetMetadataManager.replayEndTransactionMarker(producerId, result);
    }
Applies the given transaction marker.

@param producerId    The producer id.
@param producerEpoch The producer epoch.
@param result        The result of the transaction.
@throws RuntimeException if the transaction can not be completed.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorShard.java