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
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ reactiveStreams = "1.0.3"
micrometerTracing = '1.1.4'

[libraries]
kafka = "org.apache.kafka:kafka-clients:3.6.0"
kafka = "org.apache.kafka:kafka-clients:3.9.1"
reactor-core = { module = "io.projectreactor:reactor-core", version.ref = "reactorCore" }
reactor-test = { module = "io.projectreactor:reactor-test", version.ref = "reactorCore" }

Expand All @@ -31,7 +31,7 @@ powermock-core = { module = "org.powermock:powermock-core", version.ref = "power
powermock-junit = { module = "org.powermock:powermock-module-junit4", version.ref = "powermock" }
powermock-mockito = { module = "org.powermock:powermock-api-mockito2", version.ref = "powermock" }
slf4j = "org.slf4j:slf4j-api:1.7.36"
testcontainers = "org.testcontainers:kafka:1.19.0"
testcontainers = "org.testcontainers:kafka:1.21.3"
micrometer-observation = { module = "io.micrometer:micrometer-observation", version.ref = "micrometer" }
micrometer-tracing-test = { module = "io.micrometer:micrometer-tracing-integration-test", version.ref = "micrometerTracing" }

Expand Down
8 changes: 7 additions & 1 deletion src/test/java/reactor/kafka/mock/MockProducer.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2023 VMware Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2016-2025 VMware Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,6 +26,7 @@
import org.apache.kafka.common.MetricName;
import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.Uuid;
import org.apache.kafka.common.errors.InvalidTopicException;
import org.apache.kafka.common.errors.LeaderNotAvailableException;
import org.apache.kafka.common.errors.ProducerFencedException;
Expand Down Expand Up @@ -244,6 +245,11 @@ public void abortTransaction() throws ProducerFencedException {
this.abortCount++;
}

@Override
public Uuid clientInstanceId(Duration timeout) {
throw new UnsupportedOperationException("clientInstanceId not supported");
}

public void fenceProducer() {
verifyProducerState();
if (!this.transactionInitialized)
Expand Down
8 changes: 7 additions & 1 deletion src/test/java/reactor/kafka/util/ConsumerDelegate.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2023 VMware Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2020-2025 VMware Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -27,6 +27,7 @@
import org.apache.kafka.common.MetricName;
import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.Uuid;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
Expand Down Expand Up @@ -319,4 +320,9 @@ public void close(Duration timeout) {
public void wakeup() {
delegate.wakeup();
}

@Override
public Uuid clientInstanceId(Duration duration) {
return delegate.clientInstanceId(duration);
}
}
Loading