Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-6880

Set default timeouts in HttpRequests based on configured timeout

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: Master
    • Labels:
      None
    • Release Notes:
      Users can configure timeouts for internal HTTP connections and reads in cdap-site.xml. These are used for all internal HTTP calls.
    • Rank:
      1|hzziv3:

      Description

      CDAP allows changing HTTP request timeout through cdap-site.xml. However, every usage of the HttpRequests needs this timeout to be read from configuration and applied on the HTTP client. This makes it easy to miss applying the timeout in some places.

      We have seen issues like CDAP-6480, where the timeout is not applied. In such cases it is impossible to change the timeout setting without code change.

      To avoid this we should update the configured timeout as the default timeout for HttpRequests in CDAP Master on startup. Later a client can update the timeout per usage if it wants to override the default value from the configuration. But the client is not required to do so.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kashif Kashif Nazir
                Reporter:
                poorna Poorna Chandra
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: