@Override
    public int hashCode() {
        return 31 * lastDataOffset.hashCode() + producerEpoch;
    }
The last written record for a given producer. The last data offset may be undefined
if the only log entry for a producer is a transaction marker.
storage/src/main/java/org/apache/kafka/storage/internals/log/LastRecord.java