private void clearRecoverableErrors() {
        invalidTopics = Collections.emptySet();
        unauthorizedTopics = Collections.emptySet();
    }
If any non-retriable exceptions were encountered during metadata update, throw exception if the exception
is fatal or related to the specified topic. All exceptions from the last metadata update are cleared.
This is used by the producer to propagate topic metadata errors for send requests.
clients/src/main/java/org/apache/kafka/clients/Metadata.java