You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2020/06/24 15:11:18 UTC

[GitHub] [knox] smolnar82 opened a new pull request #354: KNOX-2255 - Setting HTTP client connection/socket timeout to 5m for certain services as well as replayBufferSize to 65 bytes for RANGER by default

smolnar82 opened a new pull request #354:
URL: https://github.com/apache/knox/pull/354


   ## What changes were proposed in this pull request?
   
   Changed the HTTP client connection/socket timeout to 5 minutes (default is 20 seconds) for:
   
   - CM-API
   - HIVE
   - HUE
   - IMPALA
   - NIFI
   - NIFI-REGISTRY
   
   Also, changed the `replayBufferSize` parameter for `RANGER` to 65 bytes.
   
   ## How was this patch tested?
   Ran unit tests:
   ```
   $ mvn clean -Dshellcheck=true -T1C verify -Prelease,package
   ...
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD SUCCESS
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 21:26 min (Wall Clock)
   [INFO] Finished at: 2020-06-24T16:28:23+02:00
   [INFO] Final Memory: 431M/2638M
   [INFO] ------------------------------------------------------------------------
   ```
   
   Manually tested and checked logs:
   ```
   2020-06-24 11:27:18,927 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(205)) - HTTP client connection timeout is set to 300,000 for CM-API
   2020-06-24 11:27:18,928 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(210)) - HTTP client socket timeout is set to 300,000 for CM-API
   
   2020-06-24 11:27:53,387 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(205)) - HTTP client connection timeout is set to 300,000 for HUE
   2020-06-24 11:27:53,387 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(210)) - HTTP client socket timeout is set to 300,000 for HUE
   
   2020-06-24 11:30:29,051 DEBUG knox.gateway (DefaultDispatch.java:setReplayBufferSizeInBytes(103)) - replayBufferSize is set to -1 for IMPALA
   2020-06-24 11:30:29,052 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(205)) - HTTP client connection timeout is set to 300,000 for IMPALA
   2020-06-24 11:30:29,052 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(210)) - HTTP client socket timeout is set to 300,000 for IMPALA
   
   2020-06-24 11:30:55,243 DEBUG knox.gateway (DefaultDispatch.java:setReplayBufferSizeInBytes(103)) - replayBufferSize is set to -1 for HIVE
   2020-06-24 11:30:55,243 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(205)) - HTTP client connection timeout is set to 300,000 for HIVE
   2020-06-24 11:30:55,244 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(210)) - HTTP client socket timeout is set to 300,000 for HIVE
   
   2020-06-24 11:31:50,671 DEBUG knox.gateway (DefaultDispatch.java:setReplayBufferSizeInBytes(103)) - replayBufferSize is set to 66,560 for RANGER
   2020-06-24 11:31:50,671 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(205)) - HTTP client connection timeout is set to 20,000 for RANGER
   2020-06-24 11:31:50,672 DEBUG knox.gateway (DefaultHttpClientFactory.java:getRequestConfig(210)) - HTTP client socket timeout is set to 20,000 for RANGER
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [knox] smolnar82 merged pull request #354: KNOX-2255 - Setting HTTP client connection/socket timeout to 5m for certain services as well as replayBufferSize to 65 bytes for RANGER and useTwoWaySsl to true for NIFI/NIFI-REGISTRY by default

Posted by GitBox <gi...@apache.org>.
smolnar82 merged pull request #354:
URL: https://github.com/apache/knox/pull/354


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org