[ 
https://issues.apache.org/jira/browse/KNOX-3000?focusedWorklogId=900148&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-900148
 ]

ASF GitHub Bot logged work on KNOX-3000:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Jan/24 13:17
            Start Date: 17/Jan/24 13:17
    Worklog Time Spent: 10m 
      Work Description: smolnar82 commented on code in PR #833:
URL: https://github.com/apache/knox/pull/833#discussion_r1455539684


##########
gateway-server/src/main/java/org/apache/knox/gateway/config/impl/GatewayConfigImpl.java:
##########
@@ -287,6 +287,13 @@ public class GatewayConfigImpl extends Configuration 
implements GatewayConfig {
   private static final String 
CLOUDERA_MANAGER_ADVANCED_SERVICE_DISCOVERY_CONF_MONITOR_INTERVAL = 
GATEWAY_CONFIG_FILE_PREFIX + 
".cloudera.manager.advanced.service.discovery.config.monitor.interval";
   private static final String 
CLOUDERA_MANAGER_SERVICE_DISCOVERY_REPOSITORY_CACHE_ENTRY_TTL = 
GATEWAY_CONFIG_FILE_PREFIX + 
".cloudera.manager.service.discovery.repository.cache.entry.ttl";
   private static final String 
CLOUDERA_MANAGER_SERVICE_DISCOVERY_MAX_RETRY_ATTEMPS = 
GATEWAY_CONFIG_FILE_PREFIX + 
".cloudera.manager.service.discovery.maximum.retry.attemps";
+  private static final String 
CLOUDERA_MANAGER_SERVICE_DISCOVERY_CONNECT_TIMEOUT = GATEWAY_CONFIG_FILE_PREFIX 
+ ".cloudera.manager.service.discovery.connect.timeout.msec";
+  private static final String CLOUDERA_MANAGER_SERVICE_DISCOVERY_READ_TIMEOUT 
= GATEWAY_CONFIG_FILE_PREFIX + 
".cloudera.manager.service.discovery.read.timeout.msec";
+  private static final String CLOUDERA_MANAGER_SERVICE_DISCOVERY_WRITE_TIMEOUT 
= GATEWAY_CONFIG_FILE_PREFIX + 
".cloudera.manager.service.discovery.write.timeout.msec";
+
+  private static final long 
CLOUDERA_MANAGER_SERVICE_DISCOVERY_CONNECT_TIMEOUT_DEFAULT = 20000;

Review Comment:
   What if we kept the 10 seconds in the code, to be backward compatible, and 
add new entries in the `gateway-site.xml` with 20 seconds?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 900148)
    Time Spent: 1h  (was: 50m)

> 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: 1h
>  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)

Reply via email to