public Errors getError(final String topic) {
        if (errors != null) {
            return errors.get(topic);
        }
        return null;
    }
Wait for metadata update until the current version is larger than the last version we know of
clients/src/main/java/org/apache/kafka/clients/producer/internals/ProducerMetadata.java