You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chris Egerton (Jira)" <ji...@apache.org> on 2023/03/02 15:15:00 UTC

[jira] [Updated] (KAFKA-13702) Connect RestClient overrides response status code on request failure

     [ https://issues.apache.org/jira/browse/KAFKA-13702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Egerton updated KAFKA-13702:
----------------------------------
    Fix Version/s: 3.3.3

> Connect RestClient overrides response status code on request failure
> --------------------------------------------------------------------
>
>                 Key: KAFKA-13702
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13702
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>            Reporter: Elkhan Eminov
>            Assignee: Elkhan Eminov
>            Priority: Major
>             Fix For: 3.4.0, 3.3.3
>
>
> In case the submitted request status is >=400, the connect RestClient [throws|https://github.com/apache/kafka/blob/8047ba3800436d6162d0f8eb707e28857ab9eb68/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/RestClient.java#L133] a ConnectRestException with the proper response code, but it gets intercepted and [rethrown with 500 status code|https://github.com/apache/kafka/blob/8047ba3800436d6162d0f8eb707e28857ab9eb68/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/RestClient.java#L147], effectively overriding the actual failure status. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)