zhaohaidao opened a new pull request #11015:
URL: https://github.com/apache/kafka/pull/11015
The original issue said both the MockLog and KafkaMetadataLog should only
allow appendAsLeader and appendAsFollower with monotonically increasing epochs.
However, interface method appendAsFollower seems not need epoch validation.
So I'm not sure if which is correct.
@jsancio Could you please take a look and give some advice.
`
/**
* Append a set of records that were replicated from the leader. The main
* difference from appendAsLeader is that we do not need to assign the
epoch
* or do additional validation.
*
* @return the metadata information of the appended batch
* @throws IllegalArgumentException if the record set is empty
* @throws RuntimeException if the batch base offset doesn't match the
log end offset
*/
LogAppendInfo appendAsFollower(Records records);
`
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]