Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-18473

VC.listLabels() erroneously closes any connection

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed

      Description

      In HBASE-13358 the VisibilityClient.listLabels() was amended to take in a connection from the caller, which totally makes sense. But the patch forgot to remove the unconditional call to connection.close() in the finally block:

          finally {
            if (table != null) {
              table.close();
            }
            if (connection != null) {
              connection.close();
            }
          }
      

      Remove the second if completely.

        Attachments

        1. HBASE-18473.patch
          1 kB
          Anoop Sam John

          Issue Links

            Activity

              People

              • Assignee:
                anoop.hbase Anoop Sam John
                Reporter:
                larsgeorge Lars George
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: