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

CT.verifyRegionLocation isn't doing a very good check, can delay cluster recovery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.90.3
    • 0.90.4
    • None
    • None
    • Reviewed
    • Hide
      In trunk:
      All HRegionInferface methods will now throw a RegionServerStoppedException if it's in that state, whereas we used to only check it for a few methods.
      SingleServerBulkAssigner will not kill the Master anymore when getting IOEs, instead it will just log an error and the TimeoutMonitor will take care of picking up the pieces.

      In 0.90:
      Only a couple of checkOpen calls were added in order to change as less code as possible while still fixing the issue.
      Show
      In trunk: All HRegionInferface methods will now throw a RegionServerStoppedException if it's in that state, whereas we used to only check it for a few methods. SingleServerBulkAssigner will not kill the Master anymore when getting IOEs, instead it will just log an error and the TimeoutMonitor will take care of picking up the pieces. In 0.90: Only a couple of checkOpen calls were added in order to change as less code as possible while still fixing the issue.

    Description

      After some extensive debugging in the thread A sudden msg of "java.io.IOException: Server not running, aborting", we figured that the region servers weren't able to talk to the new .META. location because the old one was still alive but on it's way down after a OOME.

      It translates into exceptions like "Server not running" coming from trying to edit .META. and digging in the code I see that CT.waitForMetaServerConnectionDefault -> waitForMeta -> getMetaServerConnection(true) calls verifyRegionLocation since we force the refresh. In this method we check if the RS is good by calling getRegionInfo which does not check if the region server is trying to close.

      What this means is that a cluster can't recover a .META.-serving RS failure until it has fully shutdown since every time a RS tries to open a region (like right after the log splitting) or split it fails editing .META.

      Attachments

        1. HBASE-3984-0.90.patch
          4 kB
          Jean-Daniel Cryans
        2. HBASE-3984-0.90-v2.patch
          3 kB
          Jean-Daniel Cryans
        3. HBASE-3984-trunk.patch
          12 kB
          Jean-Daniel Cryans
        4. HBASE-3984-trunk-v2.patch
          26 kB
          Jean-Daniel Cryans

        Activity

          People

            jdcryans Jean-Daniel Cryans
            jdcryans Jean-Daniel Cryans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: