Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2771

Log HTTP client config parameters such as socket timeouts with info level

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      Timeout parameters can be defined in two places, in gateway-site.xml and service.xml

       

      gateway.httpclient.connectionTimeout -> 6000000
      gateway.httpclient.socketTimeout -> 6000000
        

       

      <dispatch classname="org.apache.knox.gateway.hive.HiveDispatch" ha-classname="org.apache.knox.gateway.hive.HiveHaDispatch">
        <param>
          <name>httpclient.connectionTimeout</name>
          <value>5m</value>
        </param>
        <param>
          <name>httpclient.socketTimeout</name>
          <value>5m</value>
        </param>
      </dispatch> 

      The latter takes priority over the former. There are multiple examples where the customer and/or the support tried to set these in gateway-site level but it didn't work.

      It would be good to see these parameters (plus other http related configs) in the log.

      Attachments

        Issue Links

          Activity

            People

              mrtnbalazs Marton Balázs
              mrtnbalazs Marton Balázs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m