You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "DIPAYAN BHOWMICK (JIRA)" <ji...@apache.org> on 2016/03/14 20:01:34 UTC

[jira] [Created] (AMBARI-15408) Expose View Stream Provider Timeouts As Configuration Options

DIPAYAN BHOWMICK created AMBARI-15408:
-----------------------------------------

             Summary: Expose View Stream Provider Timeouts As Configuration Options
                 Key: AMBARI-15408
                 URL: https://issues.apache.org/jira/browse/AMBARI-15408
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.0.0
            Reporter: DIPAYAN BHOWMICK
            Assignee: DIPAYAN BHOWMICK
             Fix For: 2.2.2


The {{ViewRegistry}} instantiates view instances with a fixed timeout value for all remote requests:

{code}
     ComponentSSLConfiguration sslConfiguration = ComponentSSLConfiguration.instance();
     org.apache.ambari.server.controller.internal.URLStreamProvider streamProvider =
         new org.apache.ambari.server.controller.internal.URLStreamProvider(
            DEFAULT_REQUEST_CONNECT_TIMEOUT,
            DEFAULT_REQUEST_READ_TIMEOUT,
             sslConfiguration.getTruststorePath(),
             sslConfiguration.getTruststorePassword(),
             sslConfiguration.getTruststoreType());
{code}

Since we already expose UrlStreamProvider timeout values, we should either:
1) Also expose separate properties for view providers
2) Re-use the configuration options for the UrlStreamProviders

{code}
     ComponentSSLConfiguration sslConfiguration = ComponentSSLConfiguration.instance();
     org.apache.ambari.server.controller.internal.URLStreamProvider streamProvider =
         new org.apache.ambari.server.controller.internal.URLStreamProvider(
+            configuration.getRequestConnectTimeout(),
+            configuration.getRequestReadTimeout(),
             sslConfiguration.getTruststorePath(),
             sslConfiguration.getTruststorePassword(),
             sslConfiguration.getTruststoreType());
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)