...
Add API for OffsetForLeaderEpochRequest/Response
Offset For Leader Epoch Request V0 |
---|
|
Offset For Leader Epoch Response V0 |
---|
|
Error Codes: |
---|
|
Request Semantics
The offset returned in the response will be the start offset of the first Leader Epoch larger than last_leader_epoch_num or the Log End Offset if the leader's current epoch is equal to the partition_leader_epoch from the request.
The response will only include offsets for partition IDs, supplied in the request, which are leaders on the broker the request was sent to.
...
LeaderEpoch is added to MessageSets used in Fetch Responses returned as part of the internal replication protocol
MessageSet |
---|
|
We bump up ProduceRequest/FetchRequest (and responses) versions to indicate the broker that this client supports new message format.
...
A file will be used, per replica (located inside the log directory), containing the leader epoch and its corresponding start offset. This will be a text file with the schema:
leader-epoch-sequence-file |
---|
|
|
Compatibility, Deprecation, and Migration Plan
...