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

Backport HBASE-7782 (HBaseTestingUtility.truncateTable() not acting like CLI) to branch-1.x

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.0.2, 1.2.0, 1.1.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Hide
      HBaseTestingUtility now uses the truncate API added in HBASE-8332 so that calls to HBTU.truncateTable will behave like the shell command: effectively dropping the table and recreating a new one with the same split points.

      Previously, HBTU.truncateTable instead issued deletes for all the data already in the table. If you wish to maintain the same behavior, you should use the newly added HBTU.deleteTableData method.
      Show
      HBaseTestingUtility now uses the truncate API added in HBASE-8332 so that calls to HBTU.truncateTable will behave like the shell command: effectively dropping the table and recreating a new one with the same split points. Previously, HBTU.truncateTable instead issued deletes for all the data already in the table. If you wish to maintain the same behavior, you should use the newly added HBTU.deleteTableData method.

      Description

      Backport this test infrastructure improvement, which makes truncateTable() in HBaseTestingUtility behave in the same way it's CLI counterpart.

        Attachments

        1. 13764-branch-1_v1.patch
          8 kB
          Ashish Singhi
        2. 13764-branch-1.patch
          8 kB
          Ashish Singhi
        3. HBASE-13764-branch-1.patch
          7 kB
          Srikanth Srungarapu

          Issue Links

            Activity

              People

              • Assignee:
                ashish singhi Ashish Singhi
                Reporter:
                srikanth235 Srikanth Srungarapu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: