becketqin commented on a change in pull request #9824: [FLINK-14302] [kafka]
FlinkKafkaInternalProducer should not send `ADD_PARTITIONS_TO_TXN` request if
`newPartitionsInTransaction` is empty when enable EoS
URL: https://github.com/apache/flink/pull/9824#discussion_r334821372
##########
File path:
flink-connectors/flink-connector-kafka-0.11/src/test/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaProducerITCase.java
##########
@@ -45,6 +47,21 @@
protected String transactionalId;
protected Properties extraProperties;
+ @BeforeClass
+ public static void prepare() throws Exception {
+
LOG.info("-------------------------------------------------------------------------");
+ LOG.info(" Starting KafkaTestBase ");
+
LOG.info("-------------------------------------------------------------------------");
+
+ Properties serverProperties = new Properties();
+ serverProperties.put("transaction.state.log.num.partitions",
Integer.toString(1));
Review comment:
We may also want to set `auto.leader.rebalance.enable` to false to prevent
the leader from moving back to the bounced broker.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services