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

Avoid closeConnection when openConnection doesn't finish/succeed

    XMLWordPrintableJSON

    Details

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

      Description

      I've noticed during testing of Avatica, often times when SPNEGO authentication is misconfigured, the client will get stuck in openConnection().

      If we consider sqlline and the user control-C's it, sqlline will try to close the driver as well which would do a closeConnection() (which would also obviously fail).

      I believe we should be able to short-circuit the the closeConnection() when we know that the openConnection() didn't succeed properly.

      Another scenario is when the Avatica server is down. openConnection will fail, but we'll still attempt the closeConnection on exit.

        Attachments

          Activity

            People

            • Assignee:
              elserj Josh Elser
              Reporter:
              elserj Josh Elser
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: