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

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

     [ https://issues.apache.org/jira/browse/HBASE-22150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bahram Chehrazy updated HBASE-22150:
------------------------------------
    Attachment: rssStub-is-not-thread-safe-hence-should-not-be-accessed-directly.patch
        Status: Patch Available  (was: Open)

> 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
>            Priority: Major
>         Attachments: rssStub-is-not-thread-safe-hence-should-not-be-accessed-directly.patch
>
>
> 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)