[ 
https://issues.apache.org/jira/browse/KAFKA-18762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925600#comment-17925600
 ] 

Shubham Raj commented on KAFKA-18762:
-------------------------------------

[~dajac] ,

We tried keeping replication factor as 2 and then taking 1 follower replica 
down. This time the result was as per expectation in Kraft mode. (No data 
produced)

[~ijuma] ,

How can we stop a Kafka user to not create a topic with replication factor < 
min insync replica ?

> 'Acks=all' not working correctly in Kafka Kraft mode.
> -----------------------------------------------------
>
>                 Key: KAFKA-18762
>                 URL: https://issues.apache.org/jira/browse/KAFKA-18762
>             Project: Kafka
>          Issue Type: Bug
>          Components: kraft
>    Affects Versions: 3.9.0
>            Reporter: Shubham Raj
>            Priority: Critical
>
> In Kraft mode, producers are able to produce messages to a topic with a 
> replication factor of 1, even when the {{min.insync.replicas}} setting is 2 
> and {{{}acks=all{}}}. This behavior is inconsistent with Zookeeper mode, 
> where the production fails with a timeout exception as expected. This was 
> observed in Kafka 3.9.0. We tried both Java and Python API.
>  
> *Steps to Reproduce:*
>  # Set up a Kafka cluster in Kraft mode.
>  # Create a topic with the following properties:
>  ** Replication Factor: 1
>  ** Partitions: 1 (for simplicity)
>  # Set the {{min.insync.replicas}} configuration for the cluster to 2.
>  # Configure a Kafka producer with {{{}acks=all{}}}.
>  # Attempt to produce messages to the topic.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to