The Kafka offset commit API allows users to provide additional metadata (in the form of a string)
when an offset is committed. This can be useful (for example) to store information about which
node made the commit, what time the commit was made, etc.
Get the leader epoch of the previously consumed record (if one is known). Log truncation is detected
if there exists a leader epoch which is larger than this epoch and begins at an offset earlier than
the committed offset.