You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by 陈近南 <ch...@126.com> on 2023/09/17 14:49:11 UTC

Can a message avoid loss occur in Kafka

Hello, 
       Can a message avoid loss occur in Kafka. For example, my config is:


Producer
retries = Integer.MAX_VALUE
request.required.acks=-1      


Broker
replication.factor >= 2         
min.insync.replicas > 1           
log.flush.interval.messages=1    


Consumer
enable.auto.commit = false
       
     Can it avoid loss message occur in Kafka, if can not,  why? and does exist other MQ can do avoid?


Best regards,
Chen


Re: Can a message avoid loss occur in Kafka

Posted by "Matthias J. Sax" <mj...@apache.org>.
For the config you provide, data loss should not happen (as long as you 
don't allow for unclean leader election, which is disabled by default).

But you might be subject to unavailability for some partitions if a 
broker fails.


-Matthias

On 9/17/23 7:49 AM, 陈近南 wrote:
> Hello,
>         Can a message avoid loss occur in Kafka. For example, my config is:
> 
> 
> Producer
> retries = Integer.MAX_VALUE
> request.required.acks=-1
> 
> 
> Broker
> replication.factor >= 2
> min.insync.replicas > 1
> log.flush.interval.messages=1
> 
> 
> Consumer
> enable.auto.commit = false
>         
>       Can it avoid loss message occur in Kafka, if can not,  why? and does exist other MQ can do avoid?
> 
> 
> Best regards,
> Chen
>