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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.2.0
    • Fix Version/s: 3.0.0, 2.3.0
    • Component/s: regionserver
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: