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

HBASE_ZNODE_FILE on master server is overwritten by regionserver process in case of master-rs collocation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Operability
    • None
    • Reviewed

    Description

      In case of master-rs collocation HBASE_ZNODE_FILE is overwritten by regionserver process in HRegionServer#handleReportForDutyResponse() here is how it looks on master server:

      [hbase@hnode2 hbase]$ cat hbase-hbase-master.znode 
      /hbase/rs/hnode2,16000,1448022074888
      

      it contains regionserver znode path instead of String value of master's ServerName. This affects ZNodeClearer#clear() in way that will not clear master znode in case we detect master crash. At end this will extend failover time until master znode expires configured in zookeeper by maxSessionTimeout parameter (40s in my case).
      I have notice this on mater branch but it can be case in other branches where we are collocating master and rs.

      Attachments

        1. HBASE-14861v3.patch
          4 kB
          Samir Ahmic
        2. HBASE-14861v2.patch
          5 kB
          Samir Ahmic
        3. HBASE-14861.patch
          4 kB
          Samir Ahmic

        Issue Links

          Activity

            People

              asamir Samir Ahmic
              asamir Samir Ahmic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: