You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2018/08/02 23:10:27 UTC

[kudu-CR] [catalog manager] re-replication warning message update

Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/11114


Change subject: [catalog_manager] re-replication warning message update
......................................................................

[catalog_manager] re-replication warning message update

Updated the warning message upon creating a table with replication
factor F when only (F - 1) tablet servers are alive.

Do not mention unsetting --raft_prepare_replacement_before_eviction
since the 3-4-3 replica management scheme allows to spawn a new
replica in-place in case of unrecoverable failure such as IO error
and falling behind WAL's ancient history mark.  So, the 3-2-3 scheme
is no better in that regard and would not be able to re-replicate
in case of a tablet server failure either.  Also, the 3-2-3 scheme
is deprecated at this point.

I also updated the description for the --max_create_tablets_per_ts
flag to clarify on the replication factor not being taken into
account and did other petty changes around the warning message.

There are no functional changes in this patch.

Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
---
M src/kudu/master/catalog_manager.cc
1 file changed, 12 insertions(+), 15 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/14/11114/1
-- 
To view, visit http://gerrit.cloudera.org:8080/11114
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
Gerrit-Change-Number: 11114
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>

[kudu-CR] [catalog manager] re-replication warning message update

Posted by "Mike Percy (Code Review)" <ge...@cloudera.org>.
Mike Percy has posted comments on this change. ( http://gerrit.cloudera.org:8080/11114 )

Change subject: [catalog_manager] re-replication warning message update
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/11114/1/src/kudu/master/catalog_manager.cc
File src/kudu/master/catalog_manager.cc:

http://gerrit.cloudera.org:8080/#/c/11114/1/src/kudu/master/catalog_manager.cc@190
PS1, Line 190: not counting in the table's replication factor
what does this mean?



-- 
To view, visit http://gerrit.cloudera.org:8080/11114
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
Gerrit-Change-Number: 11114
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>
Gerrit-Comment-Date: Fri, 03 Aug 2018 00:30:49 +0000
Gerrit-HasComments: Yes

[kudu-CR] [catalog manager] re-replication warning message update

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Hello Will Berkeley, Mike Percy, Kudu Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/11114

to look at the new patch set (#2).

Change subject: [catalog_manager] re-replication warning message update
......................................................................

[catalog_manager] re-replication warning message update

Updated the warning message upon creating a table with replication
factor F when only (F - 1) tablet servers are alive.

Do not mention unsetting --raft_prepare_replacement_before_eviction
since the 3-4-3 replica management scheme allows to spawn a new
replica in-place in case of unrecoverable failure such as IO error
and falling behind WAL's ancient history mark.  So, the 3-2-3 scheme
is no better in that regard and would not be able to re-replicate
in case of a tablet server failure either.  Also, the 3-2-3 scheme
is deprecated at this point.

I also did few other petty changes around the warning message.

There are no functional changes in this patch.

Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
---
M src/kudu/master/catalog_manager.cc
1 file changed, 9 insertions(+), 14 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/14/11114/2
-- 
To view, visit http://gerrit.cloudera.org:8080/11114
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
Gerrit-Change-Number: 11114
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>

[kudu-CR] [catalog manager] re-replication warning message update

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/11114 )

Change subject: [catalog_manager] re-replication warning message update
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/11114/1/src/kudu/master/catalog_manager.cc
File src/kudu/master/catalog_manager.cc:

http://gerrit.cloudera.org:8080/#/c/11114/1/src/kudu/master/catalog_manager.cc@190
PS1, Line 190: not counting in the table's replication factor
> As I understand from the code around line 1467, the value of this flag does
After some consideration, I decided to keep that separate and remove from this patch.  I think if we need to fix the description for this flag or somehow update the behavior, we can do that in a separate changelist.



-- 
To view, visit http://gerrit.cloudera.org:8080/11114
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
Gerrit-Change-Number: 11114
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>
Gerrit-Comment-Date: Fri, 03 Aug 2018 04:57:13 +0000
Gerrit-HasComments: Yes

[kudu-CR] [catalog manager] re-replication warning message update

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/11114 )

Change subject: [catalog_manager] re-replication warning message update
......................................................................

[catalog_manager] re-replication warning message update

Updated the warning message upon creating a table with replication
factor F when only (F - 1) tablet servers are alive.

Do not mention unsetting --raft_prepare_replacement_before_eviction
since the 3-4-3 replica management scheme allows to spawn a new
replica in-place in case of unrecoverable failure such as IO error
and falling behind WAL's ancient history mark.  So, the 3-2-3 scheme
is no better in that regard and would not be able to re-replicate
in case of a tablet server failure either.  Also, the 3-2-3 scheme
is deprecated at this point.

I also did few other petty changes around the warning message.

There are no functional changes in this patch.

Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
Reviewed-on: http://gerrit.cloudera.org:8080/11114
Tested-by: Kudu Jenkins
Reviewed-by: Mike Percy <mp...@apache.org>
---
M src/kudu/master/catalog_manager.cc
1 file changed, 9 insertions(+), 14 deletions(-)

Approvals:
  Kudu Jenkins: Verified
  Mike Percy: Looks good to me, approved

-- 
To view, visit http://gerrit.cloudera.org:8080/11114
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
Gerrit-Change-Number: 11114
Gerrit-PatchSet: 3
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>

[kudu-CR] [catalog manager] re-replication warning message update

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/11114 )

Change subject: [catalog_manager] re-replication warning message update
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/11114/1/src/kudu/master/catalog_manager.cc
File src/kudu/master/catalog_manager.cc:

http://gerrit.cloudera.org:8080/#/c/11114/1/src/kudu/master/catalog_manager.cc@190
PS1, Line 190: not counting in the table's replication factor
> what does this mean?
As I understand from the code around line 1467, the value of this flag does not take into account replication factor.  So, when creating a table of RF=3 with 60 partitions in a cluster with 3 tablet servers, the total number of replicas per tserver will be 60, but IIUC the code at line 1467 counts it as it were only one replica per tablet.



-- 
To view, visit http://gerrit.cloudera.org:8080/11114
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
Gerrit-Change-Number: 11114
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>
Gerrit-Comment-Date: Fri, 03 Aug 2018 00:40:10 +0000
Gerrit-HasComments: Yes

[kudu-CR] [catalog manager] re-replication warning message update

Posted by "Mike Percy (Code Review)" <ge...@cloudera.org>.
Mike Percy has posted comments on this change. ( http://gerrit.cloudera.org:8080/11114 )

Change subject: [catalog_manager] re-replication warning message update
......................................................................


Patch Set 2: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/11114
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I608ce179548ac25d660d713e7ce1d0e067dd4e02
Gerrit-Change-Number: 11114
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Will Berkeley <wd...@gmail.com>
Gerrit-Comment-Date: Fri, 03 Aug 2018 20:29:02 +0000
Gerrit-HasComments: No