You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Randall Hauch (Jira)" <ji...@apache.org> on 2021/06/07 14:52:00 UTC

[jira] [Created] (KAFKA-12904) Connect's validate REST endpoint uses incorrect timeout

Randall Hauch created KAFKA-12904:
-------------------------------------

             Summary: 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


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);
```




--
This message was sent by Atlassian Jira
(v8.3.4#803005)