HBase
  1. HBase
  2. HBASE-4563

When error occurs in this.parent.close(false) of split, the split region cannot write or read

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.90.4, 0.92.0
    • Fix Version/s: 0.90.5
    • Component/s: regionserver
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Follow below steps to replay the problem:
      1. change the SplitTransaction.java as below,just like mock the hdfs error.

      SplitTransaction.java
            List<StoreFile> hstoreFilesToSplit = this.parent.close(false);
            throw new IOException("some unexpected error in close store files");
         

      2. update the regionserver code,restart;
      3. create a table & put some data to the table;
      4. split the table;
      5. scan the table,then it'll fail.

      We can fix the bug just use the patch.

      1. HBASE-4563-0.90.patch
        2 kB
        bluedavy
      2. HBASE-4563-0.92.patch
        2 kB
        bluedavy
      3. HBASE-4563-trunk.patch
        2 kB
        bluedavy
      4. test-4563-0.90.txt
        21 kB
        bluedavy
      5. test-4563-0.92.txt
        30 kB
        bluedavy
      6. test-4563-trunk.txt
        31 kB
        bluedavy

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            bluedavy
            Reporter:
            bluedavy
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development