hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "huaxiang sun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15261) Make Throwable t in DaughterOpener volatile
Date Fri, 19 Feb 2016 20:06:18 GMT

    [ https://issues.apache.org/jira/browse/HBASE-15261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154785#comment-15154785

huaxiang sun commented on HBASE-15261:

Hi [~tedyu@apache.org], just a followup with this issue. We looked into the possible causes
for the exception.
We identified two possible causes.

1. If a table is added without any column families, this is not the case as we verified that
with the user.
2. This current one. As in the split process, openning daughter regions are handled by two
separate threads. The main thread will check the exception set by two child-region-open threads
and go ahead to add these regions into onlineRegions map. It is possible that the main thread
will miss the exception since it is not declared as volatile and add the region to onlineRegions


> Make Throwable t in DaughterOpener volatile
> -------------------------------------------
>                 Key: HBASE-15261
>                 URL: https://issues.apache.org/jira/browse/HBASE-15261
>             Project: HBase
>          Issue Type: Bug
>          Components: regionserver
>            Reporter: huaxiang sun
>            Assignee: huaxiang sun
>            Priority: Minor
>         Attachments: HBASE-15261-001.patch
> In the region split process, daughter regions are opened in different threads, Throwable
t is set in these threads and it is checked in the calling thread. Need to make it volatile
so the checking will not miss any exceptions from opening daughter regions.

This message was sent by Atlassian JIRA

View raw message