public boolean failed() {
        return result.get() instanceof RuntimeException;
    }
Check if the request failed.
@return true if the request completed with a failure
clients/src/main/java/org/apache/kafka/clients/consumer/internals/RequestFuture.java