Skip to content

Commit

Permalink
[#25136] YSQL: Decrease number of iteration in PgLibPqTest.MasterRest…
Browse files Browse the repository at this point in the history
…artReadPastGlobalLimit TSAN mode

Summary:
The test performs 10k iterations, in TSAN mode it takes 0.1s to perform single iteration in TSAN mode.
So test just times out because 15 minutes is required to complete such number of iterations.

Decreased number of iterations to 1k for sanitizers.
Jira: DB-14286

Test Plan: ./yb_build.sh tsan --gtest_filter PgLibPqTest.MasterRestartReadPastGlobalLimit -n 40

Reviewers: jason, patnaik.balivada

Reviewed By: patnaik.balivada

Subscribers: ybase, yql

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D40381
  • Loading branch information
spolitov committed Dec 1, 2024
1 parent 6c3f85d commit 50db5f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/yb/yql/pgwrapper/pg_libpq-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ using std::string;

using namespace std::literals;

DEFINE_NON_RUNTIME_int32(num_iter, 10000, "Number of iterations to run StaleMasterReads test");
DEFINE_NON_RUNTIME_int32(num_iter, yb::RegularBuildVsSanitizers(10000, 1000),
"Number of iterations to run StaleMasterReads test");

DECLARE_int64(external_mini_cluster_max_log_bytes);

Expand Down

0 comments on commit 50db5f0

Please sign in to comment.