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

disable_table_replication returns misleading message and does not turn off replication

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0, 2.0.0
    • Component/s: Replication
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently HBaseAdmin#isTableRepEnabled() returns false if ANY of the columns families is not replicated.

      Because of this if you have a table where replication is partially enabled, calling disable_table_replication will not have any effect, but will report that replication for a given table is disabled.

      Workaround is enabling table replication before disabling.

      As a solution quoted from HBASE-17460:
      Admin#disableTableReplication() returns nothing and isTableRepEnabled() returns boolean. For master branch, we can let isTableRepEnabled() return enum (partially disabled, disabled, etc) This way, Admin#disableTableReplication() can return meaningful value to the user.

        Attachments

        1. HBASE-17779-branch-1.patch
          5 kB
          Janos Gub
        2. HBASE-17779-v2.patch
          4 kB
          Janos Gub
        3. HBASE-17779.patch
          4 kB
          Janos Gub

          Issue Links

            Activity

              People

              • Assignee:
                gubjanos Janos Gub
                Reporter:
                yuzhihong@gmail.com Ted Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: