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

Debugging flaky TestTruncateTableProcedure#testRecoveryAndDoubleExecutionPreserveSplits

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • None
    • None

    Description

      Trying to explain the bug in a more general way where understanding of ProcedureV2 is not required.

      Truncating table operation:
      ....
      delete region states from meta
      delete table state from meta
      ....
      add new regions to meta with state null.
      ....crash
      ....recovery: TableStateManager treats table with null state as ENABLED. AM treats regions with null state as offline. Combined result - AM starts assigning the new regions from incomplete truncate operation.

      Fix: Mark table as disabled instead of deleting it's state.


      patch1
      Just added some logging to help with debugging:

      • 60s was too less time, increased timeout
      • Added some useful log statements

      Attachments

        1. test-output.txt
          2.12 MB
          Apekshit Sharma
        2. patch1
          12 kB
          Apekshit Sharma
        3. HBASE-19457.master.001.patch
          2 kB
          Apekshit Sharma

        Activity

          People

            appy Apekshit Sharma
            appy Apekshit Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: