Skip to content

Commit

Permalink
[#11258] YCQL: Change timeout for saturated workers
Browse files Browse the repository at this point in the history
Summary: Set a smaller timeout to force failure uniformly among builds

Test Plan: jenkin test

Reviewers: pjain

Reviewed By: pjain

Differential Revision: https://phabricator.dev.yugabyte.com/D15613
  • Loading branch information
lnguyen-yugabyte authored and lnguyen committed Mar 4, 2022
1 parent b31c4ad commit 67c4c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/yb/integration-tests/cql-index-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ TEST_F(CqlIndexTest, TestSaturatedWorkers) {
* TODO: when switching to a fully asynchronous model, this failure will disappear.
*/
FLAGS_cql_prepare_child_threshold_ms = 10;
FLAGS_cql_prepare_child_threshold_ms = 1;

auto session = ASSERT_RESULT(EstablishSession(driver_.get()));
ASSERT_OK(session.ExecuteQuery(
Expand All @@ -190,7 +190,7 @@ TEST_F(CqlIndexTest, TestSaturatedWorkers) {
"CREATE INDEX i2 ON t(key, v2) WITH "
"transactions = { 'enabled' : true }"));

constexpr int kKeys = 1000;
constexpr int kKeys = 10000;
std::string expr = "BEGIN TRANSACTION ";
for (int i = 0; i < kKeys; i++) {
expr += Format("INSERT INTO t (key, v1, v2) VALUES ($0, $1, $2); ", i, i, i);
Expand Down

0 comments on commit 67c4c92

Please sign in to comment.