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

SSH and cluster startup causes data loss

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.94.1, 0.95.0
    • master
    • None
    • Reviewed

    Description

      In AssignmentManager#processDeadServersAndRegionsInTransition, if servershutdownhandler is processing and master consider it cluster startup, master will assign all user regions, however, servershutdownhandler has not completed splitting logs.

      Let me describe it in more detail.

      Suppose there are two regionservers A1 and B1, A1 carried META and ROOT

      1.master restart and completed assignRootAndMeta

      2.A1 and B1 are both restarted, new regionservers are A2 and B2

      3.SSH which processed for A1 completed assigning ROOT and META

      4.master do rebuilding user regions and no regions added to master's region list

      5.master consider it as a cluster startup, and assign all user regions

      6.SSH which processed for B1 start to split B1's logs

      7.All regions' data carried by B1 would loss.

      Attachments

        1. HBASE-6227.patch
          1.0 kB
          Chunhui Shen
        2. HBASE-6227v2.patch
          1 kB
          Chunhui Shen
        3. HBASE-6227v2-94.patch
          1 kB
          Chunhui Shen

        Issue Links

          Activity

            People

              zjushch Chunhui Shen
              zjushch Chunhui Shen
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: