You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Mike Percy (Code Review)" <ge...@cloudera.org> on 2018/02/06 03:44:44 UTC

[kudu-CR] WIP: Create a rolling-failure endurance test

Hello Alexey Serbin,

I'd like you to do a code review. Please visit

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

to review the following change.


Change subject: WIP: Create a rolling-failure endurance test
......................................................................

WIP: Create a rolling-failure endurance test

This script is designed to run for an extended period of time on a
cluster and cause a rolling failure and then restart of all the
kudu-tserver daemons on the cluster. After killing all of the
kudu-tserver processes in random order on a set of tablet servers, the
script will restart all of the processes and then run ksck until the
cluster is healthy again.

The script assumes that it has passwordless sudo access on the local
machine, that the "kudu" administrative tool is in the local PATH, that
it has passwordless sudo access on every machine on the cluster (after
ssh'ing into each machine), and that the starting state is a healthy
cluster with all daemons running.

Change-Id: Ib47547f06c0f490a1798990b46d3156c583320fc
---
A src/kudu/scripts/rolling-failure-test.pl
1 file changed, 0 insertions(+), 0 deletions(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib47547f06c0f490a1798990b46d3156c583320fc
Gerrit-Change-Number: 9222
Gerrit-PatchSet: 1
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>

[kudu-CR] WIP: Create a rolling-failure endurance test

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

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

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

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

Change subject: WIP: Create a rolling-failure endurance test
......................................................................

WIP: Create a rolling-failure endurance test

This script is designed to run for an extended period of time on a
cluster and cause a rolling failure and then restart of all the
kudu-tserver daemons on the cluster. After killing all of the
kudu-tserver processes in random order on a set of tablet servers, the
script will restart all of the processes and then run ksck until the
cluster is healthy again.

The script assumes that it has passwordless sudo access on the local
machine, that the "kudu" administrative tool is in the local PATH, that
it has passwordless sudo access on every machine on the cluster (after
ssh'ing into each machine), and that the starting state is a healthy
cluster with all daemons running.

Change-Id: Ib47547f06c0f490a1798990b46d3156c583320fc
---
A src/kudu/scripts/rolling-failure-test.pl
1 file changed, 258 insertions(+), 0 deletions(-)


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

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

[kudu-CR] WIP: Create a rolling-failure endurance test

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

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

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

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

Change subject: WIP: Create a rolling-failure endurance test
......................................................................

WIP: Create a rolling-failure endurance test

This script is designed to run for an extended period of time on a
cluster and cause a rolling failure and then restart of all the
kudu-tserver daemons on the cluster. After killing all of the
kudu-tserver processes in random order on a set of tablet servers, the
script will restart all of the processes and then run ksck until the
cluster is healthy again.

The script assumes that it has passwordless sudo access on the local
machine, that the "kudu" administrative tool is in the local PATH, that
it has passwordless sudo access on every machine on the cluster (after
ssh'ing into each machine), and that the starting state is a healthy
cluster with all daemons running.

Change-Id: Ib47547f06c0f490a1798990b46d3156c583320fc
---
A src/kudu/scripts/rolling-failure-test.pl
1 file changed, 258 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/22/9222/3
-- 
To view, visit http://gerrit.cloudera.org:8080/9222
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib47547f06c0f490a1798990b46d3156c583320fc
Gerrit-Change-Number: 9222
Gerrit-PatchSet: 3
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins

[kudu-CR] WIP: Create a rolling-failure endurance test

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

Change subject: WIP: Create a rolling-failure endurance test
......................................................................


Patch Set 3:

(3 comments)

Looks good and this script worked for me, thanks!  Just some nits.

http://gerrit.cloudera.org:8080/#/c/9222/3/src/kudu/scripts/rolling-failure-test.pl
File src/kudu/scripts/rolling-failure-test.pl:

http://gerrit.cloudera.org:8080/#/c/9222/3/src/kudu/scripts/rolling-failure-test.pl@28
PS3, Line 28: that it has passwordless sudo access on the local machine,
            : # that the "kudu" administrative tool is in the local PATH, that it has
            : # passwordless sudo access on every machine on the cluster (after ssh'ing into
            : # each machine), and that the starting state is a healthy cluster with all
            : # daemons running
nit: maybe, convert this into a bullet list for better readability?


http://gerrit.cloudera.org:8080/#/c/9222/3/src/kudu/scripts/rolling-failure-test.pl@154
PS3, Line 154: ulimit -Hu 59671; ulimit -Su 59671;
I'm not sure it's worth specifying -H and -S here, since the doc page on bash (the ulimit section) says:

  When setting new limits, if neither `-H' nor `-S' is supplied, both the hard and soft limits are set.

Also, what if setting limits fails?  Maybe, replace semi-column ';' with ampersand '&' to address that?


http://gerrit.cloudera.org:8080/#/c/9222/3/src/kudu/scripts/rolling-failure-test.pl@158
PS3, Line 158: ulimit -u 59671
Is this needed here as well?



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ib47547f06c0f490a1798990b46d3156c583320fc
Gerrit-Change-Number: 9222
Gerrit-PatchSet: 3
Gerrit-Owner: Mike Percy <mp...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Comment-Date: Wed, 07 Feb 2018 21:39:30 +0000
Gerrit-HasComments: Yes