[ https://issues.apache.org/jira/browse/KNOX-3000?focusedWorklogId=900120&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-900120 ]
ASF GitHub Bot logged work on KNOX-3000: ---------------------------------------- Author: ASF GitHub Bot Created on: 17/Jan/24 11:56 Start Date: 17/Jan/24 11:56 Worklog Time Spent: 10m Work Description: zeroflag opened a new pull request, #833: URL: https://github.com/apache/knox/pull/833 ## What changes were proposed in this pull request? Adding configurable connect, read and write timeout parameters to CM's discovery client. ## How was this patch tested? gateway-site.xml ```xml <property> <name>gateway.cloudera.manager.service.discovery.connect.timeout.msec</name> <value>15000</value> </property> <property> <name>gateway.cloudera.manager.service.discovery.read.timeout.msec</name> <value>16000</value> </property> <property> <name>gateway.cloudera.manager.service.discovery.write.timeout.msec</name> <value>17000</value> </property> ``` ```bash cat conf/descriptors/test.json { "name" : "cdp-proxy", "discovery-type" : "ClouderaManager", "discovery-address" : "http://ccycloud-1.amagyar.root.comops.site:7180", "discovery-user" : "test", "discovery-pwd-alias" : "pass", "provider-config-ref" : "default-providers", "read-only" : true, "cluster" : "Cluster 1", "services" : [ { "name" : "CM-API", "version" : null, "urls" : null } ] } ``` ```bash ./bin/knoxcli.sh create-alias pass --value pass ``` gateway.log ``` 2024-01-17 12:52:05,839 DEBUG discovery.cm (DiscoveryApiClient.java:configureTimeouts(147)) - Service discovery client connect timeout 15,000ms, read timeout 16,000ms, write timeout 17,000ms ``` Issue Time Tracking ------------------- Worklog Id: (was: 900120) Remaining Estimate: 0h Time Spent: 10m > Add configurable socket / read timeout parameter to discovery client > -------------------------------------------------------------------- > > Key: KNOX-3000 > URL: https://issues.apache.org/jira/browse/KNOX-3000 > Project: Apache Knox > Issue Type: Improvement > Reporter: Attila Magyar > Assignee: Attila Magyar > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > We have an exposed retry parameter for the CM discovery client, but there is > no way to set socket or read timeout parameters. -- This message was sent by Atlassian Jira (v8.20.10#820010)