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

rssStub in HRegionServer is not thread safe and should not directly be used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.2.0
    • 3.0.0-alpha-1, 2.3.0
    • regionserver
    • None

    Description

      While working on a patch for HBASE-22060, I noticed that a unit test started failing because region server crashed with NPE during initialization and after aborting the master. It turned out that access to the rssStub was not synchronized.

      The existing code in HRegionServer already takes care of this fact by copying and null checking in most places, but there are a couple ones that are not so careful. Those are in reportForDuty and abort methods. 

      Attachments

        Issue Links

          Activity

            People

              bahramch Bahram Chehrazy
              bahramch Bahram Chehrazy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: