hachikuji commented on a change in pull request #11288: URL: https://github.com/apache/kafka/pull/11288#discussion_r701442901
########## File path: clients/src/test/java/org/apache/kafka/common/requests/RequestResponseTest.java ########## @@ -706,6 +706,8 @@ private void checkDescribeConfigsResponseVersions() { private void checkErrorResponse(AbstractRequest req, Throwable e, boolean checkEqualityAndHashCode) { AbstractResponse response = req.getErrorResponse(e); checkResponse(response, req.version(), checkEqualityAndHashCode); + Map<Errors, Integer> errorCounts = response.errorCounts(); + assertTrue(errorCounts.containsKey(Errors.forException(e)), "API Key " + req.apiKey().name + "V" + req.version() + " failed errorCounts test"); Review comment: Is it possible to make this assertion stronger? Would we expect any other errors in the response? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org