Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3204

Potentially unclosed resources in JdbcExplorer#evalQueryMetadata

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2.3.0
    • Component/s: None
    • Labels:
      None

      Description

                  Connection con = SqlUtil.getConnection(dbconf);
                  DatabaseMetaData dbmd = con.getMetaData();
                  ResultSet rs = dbmd.getColumns(null, tmpDatabase, tmpView, null);
      

      con and rs should be closed upon return even if there is exception.

        Attachments

          Activity

            People

            • Assignee:
              liukaige Kaige Liu
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: