Since `OffsetData()` is not exposed to user, can we just use `int leaderEpoch` as the type of the constructor parameter and private variable? Maybe we can consistently use `RecordBatch.NO_PARTITION_LEADER_EPOCH` to indicate missing leaderEpoch for all non-user-facing code so as to optimize performance.
[ Full content available at: https://github.com/apache/kafka/pull/5564 ] This message was relayed via gitbox.apache.org for [email protected]
