[
https://issues.apache.org/jira/browse/KNOX-2255?focusedWorklogId=450480&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-450480
]
ASF GitHub Bot logged work on KNOX-2255:
----------------------------------------
Author: ASF GitHub Bot
Created on: 24/Jun/20 15:11
Start Date: 24/Jun/20 15:11
Worklog Time Spent: 10m
Work Description: 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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 450480)
Remaining Estimate: 0h
Time Spent: 10m
> Enrich service metadata with initial parameters
> -----------------------------------------------
>
> Key: KNOX-2255
> URL: https://issues.apache.org/jira/browse/KNOX-2255
> Project: Apache Knox
> Issue Type: Improvement
> Components: Server
> Affects Versions: 1.4.0
> Reporter: Sandor Molnar
> Assignee: Sandor Molnar
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Since KNOX-2226, there is a metadata section in the service descriptors
> ({{service.xml}}). It'd be beneficial to add an initial parameter list within
> this section.
> To start with, the following services should have set their HTTP client
> timeout parameters (socket/connection) to 5 minutes: {{CM-API, HIVE, HUE,
> IMPALA, NIFI and NIFI-REGISTRY}}.
> RANGER should have {{replayBufferSize}} of 65, to begin with.
> When topologies are deployed they should consider this parameter list.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)