public boolean isEmpty() {
        return producers.isEmpty() && unreplicatedTxns.isEmpty();
    }
Get an unmodifiable map of active producers.
storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerStateManager.java