private void resetSequenceForPartition(TopicPartition topicPartition) {
        txnPartitionMap.remove(topicPartition);
        this.partitionsWithUnresolvedSequences.remove(topicPartition);
    }
This method resets the producer ID and epoch and sets the state to UNINITIALIZED, which will trigger a new
InitProducerId request. This method is only called when the producer epoch is exhausted; we will bump the epoch
instead.
clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java