Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/17128 )

Change subject: [client-test] more robust TestRetrieveAuthzTokenInParallel
......................................................................

[client-test] more robust TestRetrieveAuthzTokenInParallel

I saw a flakiness in the ClientTest.TestRetrieveAuthzTokenInParallel
scenario, where about 25 out of 256 runs failed when running with
--stress_cpu_threads=16:

  src/kudu/client/client-test.cc:6923: Failure
  Expected: (num_reqs) < (kThreads), actual: 21 vs 20

This patch addresses the issue by:
  * skipping the scenario when --stress_cpu_threads is not zero
  * skipping the scenario when running at single-core CPU machines
  * limiting the number of threads up to the number of CPU cores

Change-Id: I0afa5ae72ccb96a218b6c6ff026ad88a70dea4f7
Reviewed-on: http://gerrit.cloudera.org:8080/17128
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Hao Hao <[email protected]>
Reviewed-by: Andrew Wong <[email protected]>
---
M src/kudu/client/client-test.cc
1 file changed, 15 insertions(+), 3 deletions(-)

Approvals:
  Alexey Serbin: Verified
  Hao Hao: Looks good to me, approved
  Andrew Wong: Looks good to me, approved

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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I0afa5ae72ccb96a218b6c6ff026ad88a70dea4f7
Gerrit-Change-Number: 17128
Gerrit-PatchSet: 4
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Hao Hao <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)

Reply via email to