Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4178

Failed connecting to Avatica Server specified EXPIRY_DURATION=0

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: avatica-1.17.0
    • Fix Version/s: None
    • Component/s: avatica
    • Labels:
      None

      Description

      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.

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              masayuki038 Masayuki Takahashi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: