public int estimatedSizeInBytes() {
        return recordsBuilder.estimatedSizeInBytes();
    }
Returns if the batch is been retried for sending to kafka
clients/src/main/java/org/apache/kafka/clients/producer/internals/ProducerBatch.java