FrankYang0529 commented on code in PR #24406:
URL: https://github.com/apache/kafka/pull/24406#discussion_r4704421854
##########
clients/src/main/java/org/apache/kafka/common/requests/CreateTopicsRequest.java:
##########
@@ -38,9 +38,6 @@ public Builder(CreateTopicsRequestData data) {
@Override
public CreateTopicsRequest build(short version) {
- if (data.validateOnly() && version == 0)
Review Comment:
`RequestResponseTest#testCreateTopicRequestV0FailsIfValidateOnly` exercises
the `validateOnly && version == 0` check that this PR removes. It still passes
after this change, but only because the `AbstractRequest` constructor now
rejects v0 with a plain `UnsupportedVersionException` ("The CREATE_TOPICS
protocol does not support version 0"). The constructor throws the same
exception when `validateOnly` is false, so the test no longer checks what its
name says. Could you remove it in this PR?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]