Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<testcontainer.version>2.0.3</testcontainer.version>
<mockwebserver.version>5.3.2</mockwebserver.version>
<!-- Dependencies -->
<kafka.version>3.9.2</kafka.version>
<kafka.version>4.3.0</kafka.version>
<picocli.version>4.7.7</picocli.version>
<jackson.version>2.18.6</jackson.version>
<jinjava.version>2.8.3</jinjava.version>
Expand Down Expand Up @@ -175,11 +175,6 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.8.6</version>
</dependency>
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>graal-sdk</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class AbstractKafkaIntegrationTest {
private static final Logger LOG = LoggerFactory.getLogger(AbstractKafkaIntegrationTest.class);
private static final Network KAFKA_NETWORK = Network.newNetwork();

public static final String APACHE_KAFKA_VERSION = "3.8.0";
public static final String APACHE_KAFKA_VERSION = "4.3.0";
public static final int DEFAULT_NUM_PARTITIONS = 1;
public static final short DEFAULT_REPLICATION_FACTOR = (short) 1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.errors.ProducerFencedException;
import org.apache.kafka.common.metrics.KafkaMetric;
import org.apache.kafka.common.serialization.Serializer;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -196,22 +197,28 @@ public void beginTransaction() throws ProducerFencedException {
}

/**
* @see KafkaProducer#sendOffsetsToTransaction(Map, String)
* @see KafkaProducer#sendOffsetsToTransaction(Map, ConsumerGroupMetadata)
**/
@Deprecated
@Override
public void sendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata> offsets,
String consumerGroupId) throws ProducerFencedException {
delegate.getResourceHandle().sendOffsetsToTransaction(offsets, consumerGroupId);
ConsumerGroupMetadata groupMetadata) throws ProducerFencedException {
delegate.getResourceHandle().sendOffsetsToTransaction(offsets, groupMetadata);
}

/**
* @see KafkaProducer#sendOffsetsToTransaction(Map, ConsumerGroupMetadata)
* @see KafkaProducer#registerMetricForSubscription(KafkaMetric)
**/
@Override
public void sendOffsetsToTransaction(Map<TopicPartition, OffsetAndMetadata> offsets,
ConsumerGroupMetadata groupMetadata) throws ProducerFencedException {
delegate.getResourceHandle().sendOffsetsToTransaction(offsets, groupMetadata);
public void registerMetricForSubscription(KafkaMetric metric) {
delegate.getResourceHandle().registerMetricForSubscription(metric);
}

/**
* @see KafkaProducer#unregisterMetricFromSubscription(KafkaMetric)
**/
@Override
public void unregisterMetricFromSubscription(KafkaMetric metric) {
delegate.getResourceHandle().unregisterMetricFromSubscription(metric);
}

/**
Expand Down
Loading