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

Test for reconnecting with HBaseAdmin using unmanaged HConnection

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.95.0
    • Client, test
    • None
    • Reviewed

    Description

      HBASE-5058 allowed HBaseAdmin to work with an existing and unmanaged HConnection. The retry semantics of managed vs unmanaged connections are different. From the JIRA:
      "For an HConnection that is passed from the outside, it has to be possible to try again. So if the HConnection is managed we retain the old behavior (i.e. only try once, give up after that, even if that failed).
      For an unmanaged connection we try again unless we actually found a master. ."

      I couldn't find any test of this behavior, only that the HBaseAdmin works with an unmanaged connection, i.e. no retry testing.

      Attachments

        1. HBASE-6606.patch
          3 kB
          Gregory Chanan
        2. HBASE-6606-v2.patch
          3 kB
          Gregory Chanan

        Activity

          People

            gchanan Gregory Chanan
            gchanan Gregory Chanan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: