You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Bahram Chehrazy (JIRA)" <ji...@apache.org> on 2019/04/02 23:29:00 UTC

[jira] [Created] (HBASE-22150) rssStub in HRegionServer is not thread safe and should not directly be used

Bahram Chehrazy created HBASE-22150:
---------------------------------------

             Summary: rssStub in HRegionServer is not thread safe and should not directly be used
                 Key: HBASE-22150
                 URL: https://issues.apache.org/jira/browse/HBASE-22150
             Project: HBase
          Issue Type: Bug
          Components: regionserver
    Affects Versions: 3.0.0, 2.2.0
            Reporter: Bahram Chehrazy
            Assignee: Bahram Chehrazy


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. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)