You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/08/25 18:03:00 UTC

[jira] [Commented] (KUDU-3304) Alter table support set replica number

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

ASF subversion and git services commented on KUDU-3304:
-------------------------------------------------------

Commit 1b499ebe9978e7d77615255862f0cf8ca1054c69 in kudu's branch refs/heads/master from Yingchun Lai
[ https://gitbox.apache.org/repos/asf?p=kudu.git;h=1b499eb ]

KUDU-3304: [Alter] Support to alter table's replication factor

In some cases we want to increase a table's replciation factor. For
example, convert a test table to production table, fix a table's RF
which is created by a buggy program.

This patch adds a function to alter table's replication factor, supported
in CLI tool, and also add some unit tests.
The command looks like:
`kudu table set_replication_factor <master_addresses> <table_name> <replication_factor>`

It should be pointed out that the CLI tool will return immediately
without waiting for the RF change to be effective, new replicas are
being up and running when increase RF, duplicate replicas are being
shutdown when decrease RF asynchronous. You can use `kudu cluster ksck`
to check whether it has been effective.

Change-Id: I3aa2d5b12c508ba761fa9410ad1a465cf31fb7d7
Reviewed-on: http://gerrit.cloudera.org:8080/17674
Tested-by: Kudu Jenkins
Reviewed-by: Andrew Wong <aw...@cloudera.com>
Reviewed-by: Alexey Serbin <as...@cloudera.com>


> Alter table support set replica number
> --------------------------------------
>
>                 Key: KUDU-3304
>                 URL: https://issues.apache.org/jira/browse/KUDU-3304
>             Project: Kudu
>          Issue Type: New Feature
>          Components: client
>    Affects Versions: 1.15.0
>            Reporter: Yingchun Lai
>            Priority: Minor
>
> For some historical reason, there maybe some tables with only one replica, when we want to increase their replication factor to 3, seems there is no way.
> I want to add a alter method to do this work, typically, it will used in CLI tools.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)