[
https://issues.apache.org/jira/browse/KAFKA-12904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Randall Hauch updated KAFKA-12904:
----------------------------------
Description:
The fix for KAFKA-9374 changed how the `ConnectorPluginsResource` and its
method to validate connector configurations used the
`ConnectorsResource.REQUEST_TIMEOUT_MS` constant (90 seconds). However, in
doing so it introduced a bug where the timeout was actually 1000x longer than
desired/specified.
In particular, the following line is currently:
{code:java}
return
validationCallback.get(ConnectorsResource.REQUEST_TIMEOUT_MS, TimeUnit.SECONDS);
{code}
but should be:
{code:java}
return
validationCallback.get(ConnectorsResource.REQUEST_TIMEOUT_MS,
TimeUnit.MILLISECONDS);
{code}
was:
The fix for KAFKA-9374 changed how the `ConnectorPluginsResource` and its
method to validate connector configurations used the
`ConnectorsResource.REQUEST_TIMEOUT_MS` constant (90 seconds). However, in
doing so it introduced a bug where the timeout was actually 1000x longer than
desired/specified.
In particular, the following line is currently:
```
return
validationCallback.get(ConnectorsResource.REQUEST_TIMEOUT_MS, TimeUnit.SECONDS);
```
but should be:
```
return
validationCallback.get(ConnectorsResource.REQUEST_TIMEOUT_MS,
TimeUnit.MILLISECONDS);
```
> Connect's validate REST endpoint uses incorrect timeout
> -------------------------------------------------------
>
> Key: KAFKA-12904
> URL: https://issues.apache.org/jira/browse/KAFKA-12904
> Project: Kafka
> Issue Type: Bug
> Components: KafkaConnect
> Affects Versions: 2.6.0
> Reporter: Randall Hauch
> Priority: Major
>
> The fix for KAFKA-9374 changed how the `ConnectorPluginsResource` and its
> method to validate connector configurations used the
> `ConnectorsResource.REQUEST_TIMEOUT_MS` constant (90 seconds). However, in
> doing so it introduced a bug where the timeout was actually 1000x longer than
> desired/specified.
> In particular, the following line is currently:
> {code:java}
> return
> validationCallback.get(ConnectorsResource.REQUEST_TIMEOUT_MS,
> TimeUnit.SECONDS);
> {code}
> but should be:
> {code:java}
> return
> validationCallback.get(ConnectorsResource.REQUEST_TIMEOUT_MS,
> TimeUnit.MILLISECONDS);
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)