Chia-Ping Tsai created KAFKA-21669:
--------------------------------------
Summary: Drop CreateTopicsRequest.Builder#build version check
Key: KAFKA-21669
URL: https://issues.apache.org/jira/browse/KAFKA-21669
Project: Kafka
Issue Type: Sub-task
Reporter: Chia-Ping Tsai
Assignee: Chia-Ping Tsai
The lowest version is v2, so the {{version <= 0}} check is redundant.
{code:java}
if (data.validateOnly() && version == 0)
throw new UnsupportedProtocolFieldException("validateOnly",
apiKey().name(), version, 1);
if (version() >= 2) {
response.setThrottleTimeMs(throttleTimeMs);
}
{code}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)