Umesh Agashe commented on HBASE-18864:

Hi [~jatsakthi]: I discussed this issue with [~stack]. We decided that the code 
changes so far are trying to fix the NPE reported in the Jira but its better to 
reject invalid value for REPLICATION_SCOPEĀ on the client side itself. There is 
a common entry point HColumnDescriptor#setValue(byte[] key, byte[] value), 
where we can validate the replication_scope value and reject it. Mind working 
on these changes?

> 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
>         Attachments: hbase-18864.branch-1.2.001.patch, 
> hbase-18864.branch-1.2.002.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

Reply via email to