@JsonProperty
        public int partition() {
            return recordMetadata.partition();
        }
Close the producer to flush any remaining messages.
tools/src/main/java/org/apache/kafka/tools/VerifiableProducer.java