You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Grant Henke (Code Review)" <ge...@cloudera.org> on 2021/02/10 16:50:15 UTC

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

Grant Henke has uploaded this change for review. ( http://gerrit.cloudera.org:8080/17055


Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................

[test] Set PROCESSORS to 4 for maintenance_mode-itest

I saw frequent test failures when running maintenance_mode-itest
in parallel on a 4 core machine. After running the example
command below I identified that these heavy tests utilize 4 cores
each and adjusted the PROCESSORS setting. With this change
all the tests regularly pass.

Command to identify PROCESSORS setting:
perf stat -I1000 -e task-clock -o perf.txt ../../thirdparty/installed/common/bin/ctest -R maintenance_mode-itest.4

Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
---
M src/kudu/integration-tests/CMakeLists.txt
1 file changed, 1 insertion(+), 1 deletion(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1:

Is there something that can be fixed in the test itself rather than adjusting the processor setting? Perhaps there is something about the test that I'm missing.


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 17:23:43 +0000
Gerrit-HasComments: No

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1:

> Patch Set 1:
> 
> We can surely optimize our tests to run with less resources on small nodes. There are likely many which we could improve that have a high PROCESSOR count. But keep in mind, that this is an easy fix and we rarely run tests locally on undersized nodes. We can probably get more value focusing on other things.

Totally agree on the impact part!


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 18:15:43 +0000
Gerrit-HasComments: No

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1: Code-Review+2

> Patch Set 1:
> 
> > > Patch Set 1:
>  > >
>  > > These are tests that use external mini-clusters with up to 6
>  > tablet servers. It makes sense that they use more CPU resources.
>  > They are already tagged as a slow running test (requiring
>  > KUDU_ALLOW_SLOW_TESTS=1 to run) and most other itests also set a
>  > PROCESSORS value > 1. The default PROCESSORS is 1 so ctest will
>  > assume that a single test shard only uses 1 core.
>  > >
>  > > I think not setting PROCESSORS > 1 was likely just an oversight
>  > given we almost always run the tests on dist-test or more powerful
>  > developer machines.
>  > 
>  > Thanks for the explanation!
>  > 
>  > So why does test fail with 1 processor? Timeout settings are too
>  > aggressive?
> 
> I guess we have many other tests which are running at least 4 processes: one master, three tablet servers: most of those tests are resilient enough to run on one- or two-core CPU.  Indeed, maybe it's possible to make 
> 
>  > > Patch Set 1:
>  > >
>  > > These are tests that use external mini-clusters with up to 6
>  > tablet servers. It makes sense that they use more CPU resources.
>  > They are already tagged as a slow running test (requiring
>  > KUDU_ALLOW_SLOW_TESTS=1 to run) and most other itests also set a
>  > PROCESSORS value > 1. The default PROCESSORS is 1 so ctest will
>  > assume that a single test shard only uses 1 core.
>  > >
>  > > I think not setting PROCESSORS > 1 was likely just an oversight
>  > given we almost always run the tests on dist-test or more powerful
>  > developer machines.
>  > 
>  > Thanks for the explanation!
>  > 
>  > So why does test fail with 1 processor? Timeout settings are too
>  > aggressive?
> 
> We have many other tests which are running at least one master and three tablet servers, and others which run three masters and three tablet servers, but it seems the majority of those are stable enough to pass even if run on 2 or 1 core CPUs.  Indeed, maybe it's possible to harden maintenance_mode-itest to be less flaky in such environments?

I can work on deflaking this test, but happy to merge this since it should still help.


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 18:04:07 +0000
Gerrit-HasComments: No

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1:

> > Patch Set 1:
 > >
 > > These are tests that use external mini-clusters with up to 6
 > tablet servers. It makes sense that they use more CPU resources.
 > They are already tagged as a slow running test (requiring
 > KUDU_ALLOW_SLOW_TESTS=1 to run) and most other itests also set a
 > PROCESSORS value > 1. The default PROCESSORS is 1 so ctest will
 > assume that a single test shard only uses 1 core.
 > >
 > > I think not setting PROCESSORS > 1 was likely just an oversight
 > given we almost always run the tests on dist-test or more powerful
 > developer machines.
 > 
 > Thanks for the explanation!
 > 
 > So why does test fail with 1 processor? Timeout settings are too
 > aggressive?

I guess we have many other tests which are running at least 4 processes: one master, three tablet servers: most of those tests are resilient enough to run on one- or two-core CPU.  Indeed, maybe it's possible to make 

 > > Patch Set 1:
 > >
 > > These are tests that use external mini-clusters with up to 6
 > tablet servers. It makes sense that they use more CPU resources.
 > They are already tagged as a slow running test (requiring
 > KUDU_ALLOW_SLOW_TESTS=1 to run) and most other itests also set a
 > PROCESSORS value > 1. The default PROCESSORS is 1 so ctest will
 > assume that a single test shard only uses 1 core.
 > >
 > > I think not setting PROCESSORS > 1 was likely just an oversight
 > given we almost always run the tests on dist-test or more powerful
 > developer machines.
 > 
 > Thanks for the explanation!
 > 
 > So why does test fail with 1 processor? Timeout settings are too
 > aggressive?

We have many other tests which are running at least one master and three tablet servers, and others which run three masters and three tablet servers, but it seems the majority of those are stable enough to pass even if run on 2 or 1 core CPUs.  Indeed, maybe it's possible to harden maintenance_mode-itest to be less flaky in such environments?


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 17:54:25 +0000
Gerrit-HasComments: No

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1:

Nodes fail to recover and reach consensus fast enough causing test failures. In these tests ksck runs until success with a 60 second timeout. Surely we could extend timeouts, but I think expressing the resource usage to ctest for appropriate parallelization and scheduling is a better approach.


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 17:54:23 +0000
Gerrit-HasComments: No

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1:

We can surely optimize our tests to run with less resources on small nodes. There are likely many which we could improve that have a high PROCESSOR count. But keep in mind, that this is an easy fix and we rarely run tests locally on undersized nodes. We can probably get more value focusing on other things.


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 18:11:01 +0000
Gerrit-HasComments: No

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1: Code-Review+1


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 18:00:21 +0000
Gerrit-HasComments: No

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................

[test] Set PROCESSORS to 4 for maintenance_mode-itest

I saw frequent test failures when running maintenance_mode-itest
in parallel on a 4 core machine. After running the example
command below I identified that these heavy tests utilize 4 cores
each and adjusted the PROCESSORS setting. With this change
all the tests regularly pass.

Command to identify PROCESSORS setting:
perf stat -I1000 -e task-clock -o perf.txt ../../thirdparty/installed/common/bin/ctest -R maintenance_mode-itest.4

Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Reviewed-on: http://gerrit.cloudera.org:8080/17055
Reviewed-by: Alexey Serbin <as...@cloudera.com>
Reviewed-by: Andrew Wong <aw...@cloudera.com>
Tested-by: Kudu Jenkins
---
M src/kudu/integration-tests/CMakeLists.txt
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Alexey Serbin: Looks good to me, but someone else must approve
  Andrew Wong: Looks good to me, approved
  Kudu Jenkins: Verified

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 2
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1:

> Patch Set 1:
> 
> These are tests that use external mini-clusters with up to 6 tablet servers. It makes sense that they use more CPU resources. They are already tagged as a slow running test (requiring KUDU_ALLOW_SLOW_TESTS=1 to run) and most other itests also set a PROCESSORS value > 1. The default PROCESSORS is 1 so ctest will assume that a single test shard only uses 1 core.
> 
> I think not setting PROCESSORS > 1 was likely just an oversight given we almost always run the tests on dist-test or more powerful developer machines.

Thanks for the explanation!

So why does test fail with 1 processor? Timeout settings are too aggressive?


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 17:31:42 +0000
Gerrit-HasComments: No

[kudu-CR] [test] Set PROCESSORS to 4 for maintenance mode-itest

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

Change subject: [test] Set PROCESSORS to 4 for maintenance_mode-itest
......................................................................


Patch Set 1:

These are tests that use external mini-clusters with up to 6 tablet servers. It makes sense that they use more CPU resources. They are already tagged as a slow running test (requiring KUDU_ALLOW_SLOW_TESTS=1 to run) and most other itests also set a PROCESSORS value > 1. The default PROCESSORS is 1 so ctest will assume that a single test shard only uses 1 core.

I think not setting PROCESSORS > 1 was likely just an oversight given we almost always run the tests on dist-test or more powerful developer machines.


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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I89b479374266a64edf7fd455837c4d57a684694b
Gerrit-Change-Number: 17055
Gerrit-PatchSet: 1
Gerrit-Owner: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Grant Henke <gr...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 17:28:43 +0000
Gerrit-HasComments: No