pub const NUM_BATCHES_TO_RETAIN: usize = 5;
Kafka’s ProducerStateEntry.NUM_BATCHES_TO_RETAIN: the number of a producer’s most recent batches whose retry answers as a duplicate.
ProducerStateEntry.NUM_BATCHES_TO_RETAIN