You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Vitaly Brodetskyi (JIRA)" <ji...@apache.org> on 2014/03/12 15:29:42 UTC

[jira] [Resolved] (AMBARI-5047) API proxy returns "204 No Content" if the underlying call takes more than a few seconds

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

Vitaly Brodetskyi resolved AMBARI-5047.
---------------------------------------

    Resolution: Fixed

Committed to trunk

> API proxy returns "204 No Content" if the underlying call takes more than a few seconds
> ---------------------------------------------------------------------------------------
>
>                 Key: AMBARI-5047
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5047
>             Project: Ambari
>          Issue Type: Task
>          Components: agent
>    Affects Versions: 1.5.1
>            Reporter: Vitaly Brodetskyi
>            Assignee: Vitaly Brodetskyi
>            Priority: Critical
>             Fix For: 1.5.1
>
>         Attachments: AMBARI-5047.patch
>
>
> It looks like the API proxy behaves in an expected manner (returns HTTP code 204 with no response) when the underlying API call being proxied does not return in a timely manner.
> It seems like this threshold is around 3 seconds.
> When I was testing Falcon, I kept getting 204 from Ambari's API proxy, but the underlying API calls were successful when directly run against Falcon.
> 3 seconds is a bit aggressive.  Perhaps we can pass a parameter to change the timeout value in milliseconds, with a hard limit on 15 seconds or so?
> Also, returning 204 is not ideal.  We should return {error: "400", message: "Connection timed out"} or something like that (I didn't check the actual format that we use... just an example), so that the API client can perform appropriate error handling.



--
This message was sent by Atlassian JIRA
(v6.2#6252)