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

Table deletion failed but HBaseAdmin#deletetable reports it as success

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.90.7, 0.92.2, 0.94.0
    • Fix Version/s: 0.94.1, 0.95.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      all versions

    • Hadoop Flags:
      Reviewed

      Description

      Reproduce this issue by following steps:
      For reproduce it I add this code in DeleteTableHandler#handleTableOperation():

            LOG.debug("Deleting region " + region.getRegionNameAsString() +
              " from META and FS");
      	  +if (true) {
      	  +  throw new IOException("ERROR");
      	  +}
            // Remove region from META
            MetaEditor.deleteRegion(this.server.getCatalogTracker(), region);
      

      step1:create a table and disable it.
      step2:delete it by HBaseAdmin#deleteTable() API.

      result:after lone time, The log say the Table has been deleted, but in fact if we do "list" in shell,the table also exists.

        Attachments

        1. HBASE-5894_94_patch_v2.patch
          1 kB
          xufeng
        2. HBASE-5894_90_patch_v2.patch
          1 kB
          xufeng
        3. HBASE-5894_92_patch_v2.patch
          1 kB
          xufeng
        4. HBASE-5894_trunk_patch_v3.patch
          1 kB
          xufeng
        5. HBASE-5894_trunk_patch_v2_surefire-report.html
          289 kB
          xufeng
        6. HBASE-5894_94_patch_v1_surefire-report.html
          280 kB
          xufeng
        7. HBASE-5894_92_patch_v1_surefire-report.html
          281 kB
          xufeng
        8. HBASE-5894_90_patch_v1_surefire-report.html
          201 kB
          xufeng
        9. HBASE-5894_trunk_patch_v2.patch
          1 kB
          xufeng
        10. HBASE-5894_94_patch_v1.patch
          1 kB
          xufeng
        11. HBASE-5894_92_patch_v1.patch
          1 kB
          xufeng
        12. HBASE-5894_90_patch_v1.patch
          1 kB
          xufeng
        13. HBASE-5894_trunk_patch_v1_surefire-report.html
          286 kB
          xufeng
        14. HBASE-5894_trunk_patch_v1.patch
          1 kB
          xufeng

          Activity

            People

            • Assignee:
              xufeng xufeng
              Reporter:
              xufeng xufeng
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: