You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2018/03/14 19:35:00 UTC

[jira] [Comment Edited] (HBASE-18864) NullPointerException thrown when adding rows to a table from peer cluster, table with replication factor other than 0 or 1

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

Andrew Purtell edited comment on HBASE-18864 at 3/14/18 7:34 PM:
-----------------------------------------------------------------

This is committed but the Jira is still in Patch Available state. Let's stop doing this!

I don't think this is the right fix. In theory someone can plug in a new strategy (perhaps quite theoretical at the moment, but possible) and so we made scope an integer to express more options, beyond just local/global, than a boolean could. If this ever happens the check in HCD would be incorrect. Better to fix the NPE at the source.


was (Author: apurtell):
This is committed but the Jira is still in Patch Available state. Let's stop doing this!

I don't think this necessarily the right fix. In theory someone can plug in a new strategy (perhaps quite theoretical at the moment, but possible) and so we made scope an integer to express more options, beyond just local/global, than a boolean could. If this ever happens the check in HCD would be incorrect. Better to fix the NPE at the source.

> NullPointerException thrown when adding rows to a table from peer cluster, table with replication factor other than 0 or 1
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-18864
>                 URL: https://issues.apache.org/jira/browse/HBASE-18864
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase
>    Affects Versions: 1.3.0
>            Reporter: smita
>            Assignee: Sakthi
>            Priority: Major
>              Labels: beginner
>             Fix For: 1.3.2, 1.2.7, 1.4.3
>
>         Attachments: hbase-18864.branch-1.2.001.patch, hbase-18864.branch-1.2.002.patch, hbase-18864.branch-1.2.003.patch, hbase-18864.branch-1.2.004.patch, hbase-18864.branch-1.addendum.patch
>
>
> Scenario:
> =============
> add_peer
> create a table
> alter table with REPLICATION_SCOPE => '5'
> enable table replication
> login to peer cluster and try putting data to the table 



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