Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
0.11.0.1
-
None
-
OS: Windows 10 64bit
Kafka: kafka_2.11-0.11.0.1(https://www.apache.org/dyn/closer.cgi?path=/kafka/0.11.0.1/kafka_2.11-0.11.0.1.tgz)
JDK: 1.8.0_144 64bit
Client: kafka-clients 0.11.0.1
Description
Can't invoke twice (begin,commit transaction) on same Kafka Producer instance when it connected Kafka server run on windows 10.
But same code can run successfully when Kafka server run on CentOS 7.3 64bit with same Kafka server code base and config.
Producer code looks like:
Map<String, Object> props = new HashMap<>();
props.put("bootstrap.servers", "localhost:9092");
props.put("transactional.id", "my-transactional-id");
Producer<String, String> producer = new KafkaProducer<>(props, new StringSerializer(), new StringSerializer());
producer.initTransactions();
try
catch (ProducerFencedException | OutOfOrderSequenceException | AuthorizationException e)
{ producer.close(); }catch (KafkaException e)
{ producer.abortTransaction(); }producer.close();
Attachments
Issue Links
- duplicates
-
KAFKA-6052 Windows: Consumers not polling when isolation.level=read_committed
- Resolved