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

Make CPEnv#getConnection return a facade that throws Unsupported if CP calls #close

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed

      Description

      Follows from HBASE-19301, a suggestion by [~zghaobac].

      To prevent a CP accidentally closing the connection returned by CpEnv#getConnection – which returns the hosting Servers Connection – we should throw UnsupportedException if the CP calls #close.... Do it.

        Attachments

        1. HBASE-19463.master.002.patch
          15 kB
          Guanghao Zhang
        2. HBASE-19463.master.001.patch
          11 kB
          Guanghao Zhang

          Issue Links

            Activity

              People

              • Assignee:
                zghao Guanghao Zhang
                Reporter:
                stack Michael Stack
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: