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

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

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.0.2, 1.2.0, 1.1.1
    • None
    • None
    • Incompatible change, Reviewed
    • 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. HBASE-13764-branch-1.patch
          7 kB
          Srikanth Srungarapu
        2. 13764-branch-1.patch
          8 kB
          Ashish Singhi
        3. 13764-branch-1_v1.patch
          8 kB
          Ashish Singhi

        Activity

          People

            ashish singhi Ashish Singhi
            srikanth235 Srikanth Srungarapu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: