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

Truncate table with preserve after split may cause truncation to fail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.7, 1.2.4
    • Fix Version/s: None
    • Component/s: Admin
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In truncateTableProcedue , when getting tables regions from meta to recreate new regions, split parents are not excluded, so the new regions can end up with the same start key, and the same region dir:

      2016-12-14 20:15:22,231 WARN  [RegionOpenAndInitThread-writetest-1] regionserver.HRegionFileSystem: Trying to create a region that already exists on disk: hdfs://hbasedev1/zhengyan-hbase11-func2/.tmp/data/default/writetest/9b2c8d1539cd92661703ceb8a4d518a1
      

      The truncateTableProcedue will retry forever and never get success.
      A attached unit test shows everything.

        Attachments

        1. TestTruncateTableProcedure-output.tar.gz
          17.20 MB
          Ted Yu
        2. HBASE-17319-branch-1.patch
          6 kB
          Allan Yang
        3. HBASE-17319-branch-1.patch
          6 kB
          Ted Yu
        4. HBASE-17319.patch
          6 kB
          Allan Yang
        5. 17319-branch-1.patch
          6 kB
          Ted Yu
        6. 17319.stack
          200 kB
          Ted Yu

          Activity

            People

            • Assignee:
              allan163 Allan Yang
              Reporter:
              allan163 Allan Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: