Data Plane - Apache Kafka®'s Replication Protocol

  Рет қаралды 14,569

Confluent

Confluent

Күн бұрын

Пікірлер: 16
@ajaykanojiya4054
@ajaykanojiya4054 2 жыл бұрын
excellent.. But I couldn't understand, what is epoch. It will be great if you light more on epoch.
@stepander007
@stepander007 2 жыл бұрын
Leader's epoch is something like President's elections. First president, Second president and so on. All the time leader is changes(new president elected) you have this number increased.
@cronus663
@cronus663 Жыл бұрын
Just complementing the previous answer, the epoch is just to mark what leader was responsable for writing which data, this is important to run the reconciliating flow, it's important to know the offset of the last commited record from the previous leader!
@TracyZhang-j1l
@TracyZhang-j1l 9 ай бұрын
What does the "follower caught up all the way with the leader" mean? Is it the last time the follower has sent a Fetch request successfully with a right epoch and offset?
@PooyaWDG
@PooyaWDG Жыл бұрын
When does a follower know to start fetching the new data? is it a polling approach?
@ragupathia2316
@ragupathia2316 7 ай бұрын
Hi, Suppose broker 103 elected as new leader, it has epoch value 1 till offset 3. But broker 102 has epoch value 1 till offset 5. Due to reconciling, 4,5 will be deleted, it means those 2 data will be ignored to commit. Is that producer data lost ?
@marc-andrelabrosse5379
@marc-andrelabrosse5379 2 жыл бұрын
That means that we lost 2 record in the reconciliation between the lader and the follower is it not? Why did the election did not choose the broker 102. to not loose those records?
@CarterChen
@CarterChen 2 жыл бұрын
because the 2 records are not yet considered as committed, since they are only replicated to one follower of the ISR (102, 103 both are in ISR), so 103 is a valid candidate for competing leader
@quizforces
@quizforces Жыл бұрын
@@CarterChen So for those two messages would the client know that the messages could not reach the kafka cluster and they need to be sent again ?
@fanzhang1370
@fanzhang1370 8 ай бұрын
this depends on the producer config of ack. if not set to all there can be data loss
@samson279
@samson279 Жыл бұрын
4:07 it's very weird that the leader advanced it's high watermark after receiving follower fetch request from 1 follower, even though there are 2 (!!) followers in ISR. This video doesn't explain this.
@pra86sat
@pra86sat 11 ай бұрын
HighWatermark is advanced by leader after it receives the fetch request from follower with the updated offset 3:45: broker 102 request for offset 3 and broker 103 request for offset 3. Now broker 102 and 103 are not aware of the HighWaterMark, until the leader propagates this info via the response for the fetch request.
@РоманБондарь-ы8щ
@РоманБондарь-ы8щ 11 ай бұрын
Does not really explain what preferred replica is and what it does. The part about leader epoch is also unclear
@martykate
@martykate 8 ай бұрын
the replica that was the leader when the topic was originally created. It is preferred because when partitions are first created, the leaders are balanced between brokers
@maaruiusagi7400
@maaruiusagi7400 2 жыл бұрын
What if broker-102 is elected as the new leader? When broker-103 sends a fetchRequest with offset=3 and lastFetchEpoch=1, will broker-102 know that it needs to drop events 3 and 4 since they came from epoch 1 (the now-failed broker-101) but never received by broker-103 (thus they are probably never acked), or will it still send them to broker-103 though they were never acked?
@DivijVaidyaIndia
@DivijVaidyaIndia 2 жыл бұрын
The latter. In Apache Kafka's replication protocol, the following invariant always holds true: - the log of the current leader is never truncated as long as it is the leader. - all replicas will reconcile to a state where either their log is empty or the record (including epoch) at their (endOffset - 1) is present in the leader log. In the situation that you mentioned, broker-103 will send a fetchRequest with offset=3 and lastFetchEpoch=1. Broker-102 (new leader) will send the records 3 & 4 to broker-103. On receiving the records, broker-103 will add the records (3 & 4) to it's local log, and increment it's Hw to match that of leader i.e. 3.
The Apache Kafka® Control Plane - ZooKeeper vs. KRaft
12:03
Confluent
Рет қаралды 20 М.
Apache Kafka® Brokers: Introduction to the Data Plane
8:06
Confluent
Рет қаралды 19 М.
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 2,3 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 5 МЛН
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 19 МЛН
Apache Kafka® Consumers and Consumer Group Protocol
15:08
Confluent
Рет қаралды 23 М.
Geo-Replication with Apache Kafka® and Confluent
11:36
Confluent
Рет қаралды 6 М.
What Is Tiered Storage?
7:54
Confluent
Рет қаралды 7 М.
Kafka Streams 101: Getting Started (2023)
11:43
Confluent
Рет қаралды 113 М.
Apache Kafka® Topic Compaction
10:56
Confluent
Рет қаралды 13 М.
Apache Kafka® Cluster Scaling and Automation
6:49
Confluent
Рет қаралды 6 М.