You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "chunhui shen (JIRA)" <ji...@apache.org> on 2012/09/25 08:11:07 UTC

[jira] [Created] (HBASE-6877) Coprocessor exec result is incorrect when region is in splitting

chunhui shen created HBASE-6877:
-----------------------------------

             Summary: Coprocessor exec result is incorrect when region is in splitting 
                 Key: HBASE-6877
                 URL: https://issues.apache.org/jira/browse/HBASE-6877
             Project: HBase
          Issue Type: Bug
          Components: Coprocessors
    Affects Versions: 0.94.1
            Reporter: chunhui shen
            Assignee: chunhui shen
            Priority: Critical


When we execute the coprocessor, we will called HTable#getStartKeysInRange first and get the Keys to exec coprocessor,
if then some regions are split before execCoprocessor RPC, the Keys are something wrong now, and the result we get is not integrated, 

for example:
parent region is split into daughter region A and daughter region B,
we executed coprocessor on the parent region, but the result data is only daughter region A or daughter region B




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (HBASE-6877) Coprocessor exec result is incorrect when region is in splitting

Posted by "chunhui shen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-6877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

chunhui shen updated HBASE-6877:
--------------------------------

    Attachment: HBASE-6877.patch

There is a test case in the patch to show this bug
                
> Coprocessor exec result is incorrect when region is in splitting 
> -----------------------------------------------------------------
>
>                 Key: HBASE-6877
>                 URL: https://issues.apache.org/jira/browse/HBASE-6877
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>    Affects Versions: 0.94.1
>            Reporter: chunhui shen
>            Assignee: chunhui shen
>            Priority: Critical
>         Attachments: HBASE-6877.patch
>
>
> When we execute the coprocessor, we will called HTable#getStartKeysInRange first and get the Keys to exec coprocessor,
> if then some regions are split before execCoprocessor RPC, the Keys are something wrong now, and the result we get is not integrated, 
> for example:
> parent region is split into daughter region A and daughter region B,
> we executed coprocessor on the parent region, but the result data is only daughter region A or daughter region B

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HBASE-6877) Coprocessor exec result is incorrect when region is in splitting

Posted by "Andrew Purtell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-6877?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462482#comment-13462482 ] 

Andrew Purtell commented on HBASE-6877:
---------------------------------------

Reissuing requests to the other daughter when a split is detected makes sense. Minor issue with the patch is by dropping "actual" in method names and variables, the result seems to read better.
                
> Coprocessor exec result is incorrect when region is in splitting 
> -----------------------------------------------------------------
>
>                 Key: HBASE-6877
>                 URL: https://issues.apache.org/jira/browse/HBASE-6877
>             Project: HBase
>          Issue Type: Bug
>          Components: Coprocessors
>    Affects Versions: 0.94.1
>            Reporter: chunhui shen
>            Assignee: chunhui shen
>            Priority: Critical
>         Attachments: HBASE-6877.patch
>
>
> When we execute the coprocessor, we will called HTable#getStartKeysInRange first and get the Keys to exec coprocessor,
> if then some regions are split before execCoprocessor RPC, the Keys are something wrong now, and the result we get is not integrated, 
> for example:
> parent region is split into daughter region A and daughter region B,
> we executed coprocessor on the parent region, but the result data is only daughter region A or daughter region B

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira