CCDAK · Question #142
You have a Kafka cluster and all the topics have a replication factor of 3. One intern at your company stopped a broker, and accidentally deleted all the data of that broker on the disk. What will…
The correct answer is B. The broker will start, and won't be online until all the data it needs to have is replicated from other. Kafka replication mechanism makes it resilient to the scenarios where the broker lose data on disk, but can recover from replicating from other brokers. This makes Kafka amazing!
Question
You have a Kafka cluster and all the topics have a replication factor of 3. One intern at your company stopped a broker, and accidentally deleted all the data of that broker on the disk. What will happen if the broker is restarted?
Options
- AThe broker will start, and other topics will also be deleted as the broker data on the disk got
- BThe broker will start, and won't be online until all the data it needs to have is replicated from other
- CThe broker will crash
- DThe broker will start, and won't have any data. If the broker comes leader, we have a data loss
How the community answered
(46 responses)- A4% (2)
- B72% (33)
- C9% (4)
- D15% (7)
Explanation
Kafka replication mechanism makes it resilient to the scenarios where the broker lose data on disk, but can recover from replicating from other brokers. This makes Kafka amazing!
Topics
Community Discussion
No community discussion yet for this question.