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

Hudson commented on HBASE-17779:
--------------------------------

SUCCESS: Integrated in Jenkins build HBase-Trunk_matrix #2673 (See 
[https://builds.apache.org/job/HBase-Trunk_matrix/2673/])
HBASE-17779 disable_table_replication returns misleading message and (tedyu: 
rev 777fea552eab3262e95053b2fc757fc49dfad96d)
* (edit) 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
* (edit) 
hbase-server/src/test/java/org/apache/hadoop/hbase/client/replication/TestReplicationAdminWithClusters.java


> disable_table_replication returns misleading message and does not turn off 
> replication
> --------------------------------------------------------------------------------------
>
>                 Key: HBASE-17779
>                 URL: https://issues.apache.org/jira/browse/HBASE-17779
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Janos Gub
>         Attachments: HBASE-17779-branch-1.patch, HBASE-17779.patch, 
> HBASE-17779-v2.patch
>
>
> Currently HBaseAdmin#isTableRepEnabled() returns false if ANY of the columns 
> families is not replicated.
> Because of this if you have a table where replication is partially enabled, 
> calling disable_table_replication will not have any effect, but will report 
> that replication for a given table is disabled.
> Workaround is enabling table replication before disabling. 
> As a solution quoted from HBASE-17460:
> Admin#disableTableReplication() returns nothing and isTableRepEnabled() 
> returns boolean. For master branch, we can let isTableRepEnabled() return 
> enum (partially disabled, disabled, etc) This way, 
> Admin#disableTableReplication() can return meaningful value to the user.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to