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

Low replication should be checked in period in case of datanode rolling upgrade

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0, 1.1.10
    • 1.4.0, 1.3.2, 2.0.0, 1.2.7
    • None
    • None
    • Reviewed

    Description

      For now, we just check low replication of WALs when there is a sync operation (HBASE-2234), rolling the log if the replica of the WAL is less than configured. But if the WAL has very little writes or no writes at all, low replication will not be detected and thus no log will be rolled.
      That is a problem when rolling updating datanode, all replica of the WAL with no writes will be restarted and lead to the WAL file end up with a abnormal state. Later operation of opening this file will be always failed.
      I bring up a patch to check low replication of WALs at a configured period. When rolling updating datanodes, we just make sure the restart interval time between two nodes is bigger than the low replication check time, the WAL will be closed and rolled normally. A UT in the patch will show everything.

      Attachments

        1. HBASE-18132-branch-1.v4.patch
          8 kB
          Allan Yang
        2. HBASE-18132-branch-1.v3.patch
          8 kB
          Allan Yang
        3. HBASE-18132-branch-1.v2.patch
          8 kB
          Allan Yang
        4. HBASE-18132-branch-1.patch
          8 kB
          Allan Yang
        5. HBASE-18132.patch
          10 kB
          Allan Yang

        Activity

          People

            allan163 Allan Yang
            allan163 Allan Yang
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: