Skip to content

Commit b34840e

Browse files
authored
Merge branch 'main' into feature/kafka4
2 parents ef83f90 + 95e3896 commit b34840e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/sink/internal/FlinkKafkaInternalProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public long getProducerId() {
179179
public void setTransactionId(String transactionalId) {
180180
checkState(
181181
!isInTransaction(),
182-
String.format("Another transaction %s is still open.", transactionalId));
182+
String.format("Another transaction %s is still open.", this.transactionalId));
183183
LOG.debug("Change transaction id from {} to {}", this.transactionalId, transactionalId);
184184
this.transactionalId = transactionalId;
185185
Object transactionManager = getTransactionManager();

flink-connector-kafka/src/test/java/org/apache/flink/connector/kafka/testutils/KafkaUtil.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public static KafkaContainer createKafkaContainer(String containerName) {
6767
.withEnv("KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR", "1")
6868
.withEnv("KAFKA_TRANSACTION_STATE_LOG_MIN_ISR", "1")
6969
.withEnv("KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR", "1")
70-
.withEnv("KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE", "false")
7170
.withEnv("KAFKA_LOG4J_ROOT_LOGLEVEL", logLevel)
7271
.withEnv("KAFKA_LOG4J_LOGGERS", "state.change.logger=" + logLevel)
7372
.withEnv("KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE", "false")

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ under the License.
5454
<!-- Main Dependencies -->
5555
<confluent.version>7.9.2</confluent.version>
5656
<flink.version>2.1.0</flink.version>
57+
5758
<kafka.version>4.1.0</kafka.version>
59+
5860
<!-- Other Dependencies -->
5961
<avro.version>1.12.0</avro.version>
6062
<byte-buddy.version>1.12.10</byte-buddy.version>

0 commit comments

Comments
 (0)