@Override
    public int hashCode() {
        return Objects.hash(
            baseOffset,
            epoch,
            appendTimestamp,
            sizeInBytes,
            lastOffset,
            records,
            controlRecords
        );
    }
The number of bytes used by this batch.
raft/src/main/java/org/apache/kafka/raft/Batch.java