You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Masayuki Takahashi (Jira)" <ji...@apache.org> on 2020/08/16 07:26:00 UTC

[jira] [Created] (CALCITE-4178) Failed connecting to Avatica Server specified EXPIRY_DURATION=0

Masayuki Takahashi created CALCITE-4178:
-------------------------------------------

             Summary: Failed connecting to Avatica Server specified EXPIRY_DURATION=0
                 Key: CALCITE-4178
                 URL: https://issues.apache.org/jira/browse/CALCITE-4178
             Project: Calcite
          Issue Type: Improvement
          Components: avatica
    Affects Versions: avatica-1.17.0
            Reporter: Masayuki Takahashi


When setting JdbcMeta.ConnectionCacheSettings.EXPIRY_DURATION=0 to JdbcMeta, it fails connecting Avatica Server at "connectionSync". Same for JdbcMeta.ConnectionCacheSettings.MAX_CAPACITY=0.

It causes that these settings disable to cache connections and throwing the exception.
{code}
org.apache.calcite.avatica.NoSuchConnectionException
	at org.apache.calcite.avatica.jdbc.JdbcMeta.getConnection(JdbcMeta.java:571)
	at org.apache.calcite.avatica.jdbc.JdbcMeta.connectionSync(JdbcMeta.java:682)
	at org.apache.calcite.avatica.remote.LocalService.apply(LocalService.java:301)
	at org.apache.calcite.avatica.remote.Service$ConnectionSyncRequest.accept(Service.java:2023)
	at org.apache.calcite.avatica.remote.Service$ConnectionSyncRequest.accept(Service.java:1999)
	at org.apache.calcite.avatica.remote.AbstractHandler.apply(AbstractHandler.java:94)
	at org.apache.calcite.avatica.remote.JsonHandler.apply(JsonHandler.java:52)
{code} 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)