apache /
kudu /
38bad954c2d903a8a61ddd728f8c58dc00412925 [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 <aserbin@cloudera.com>
Reviewed-by: Hao Hao <hao.hao@cloudera.com>
Reviewed-by: Andrew Wong <awong@cloudera.com>
1 file changed