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

TestCompactionInDeadRegionServer is top of the flakies charts!

    XMLWordPrintableJSON

Details

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

    Description

      The test came in recently as part of HBASE-17712 "Remove/Simplify the logic of RegionScannerImpl.handleFileNotFound"

      Apache9 when you have a chance, help me out. I was going to just remove the test since it made no sense to me but then I saw you wrote it (smile).

      When the region.compact(true); is called on the end, what is supposed to be going on?

      When I trace, the compact is not done because the Region is not writeEnabled (we check if Region is writeEnabled down in Store before we go ahead and compact). So, I thought the problem was that the region reference was stale because it came from the rsToSuspend which had just been killed.

      After a while, I figured that you intend the region reference to be stale so you can try an append AFTER the WAL has been taken over by WAL splitter.

      But the writeEnabled flag is set so compactions don't run. I tried unsetting this flag and closed flags and but compaction won't run.

      Was this your intent sir? If so, I'll work w/ it np. Just looking for clarity. Thanks.

      Attachments

        1. 19056.branch-1.patch
          4 kB
          Ted Yu
        2. 19056.v5.txt
          17 kB
          Ted Yu
        3. 19056.v6.txt
          4 kB
          Ted Yu
        4. 19056.v7.txt
          4 kB
          Ted Yu

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: