CCAAK · Question #78
You are managing a Kafka cluster and notice that a producer is encountering a 'NotEnoughReplicas' exception. What is the reason for the 'NotEnoughReplicas' exception?
The correct answer is A. The topic has insufficient in-sync replicas to satisfy the producer's acknowledgment requirements. The exception occurs when the number of in-sync replicas available for a partition is lower than the producer's required acknowledgment level. The producer cannot receive the required confirmations, so Kafka returns this error.
Question
You are managing a Kafka cluster and notice that a producer is encountering a 'NotEnoughReplicas' exception. What is the reason for the 'NotEnoughReplicas' exception?
Options
- AThe topic has insufficient in-sync replicas to satisfy the producer's acknowledgment requirements.
- BThe topic contains partitions that are currently under-replicated.
- CThe topic's observer replicas are not properly synchronized.
- DThe topic's log retention period is configured too low.
How the community answered
(20 responses)- A70% (14)
- B10% (2)
- C15% (3)
- D5% (1)
Explanation
The exception occurs when the number of in-sync replicas available for a partition is lower than the producer's required acknowledgment level. The producer cannot receive the required confirmations, so Kafka returns this error.
Topics
Community Discussion
No community discussion yet for this question.