Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
119027: roachtest: add jobs contention roachtest r=stevendanna a=msbutler

This patch adds a roachtest that attempts to stress the job system. To do so,
the test spins up 5,000 tables with changefeeds with a 5 minutes pts
expiration, randomly pauses and resume these changefeeds to stress the pts
management poller, and polls SHOW JOBS to assert that it returns in less than 2
minutes. If the assertion fails, the debug zip will hopefully reveal some form
of contention on the job system.  Further, the test also runs EXPLAIN ANALYZE
SHOW JOBS after the assertion fails for more debugging information.

Informs cockroachdb#118512

Release note: none


Co-authored-by: Michael Butler <[email protected]>
  • Loading branch information
craig[bot] and msbutler committed Feb 23, 2024
2 parents 93db971 + dd05cd5 commit c457110
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 139 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/roachtest/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ go_library(
"java_helpers.go",
"jepsen.go",
"jobs.go",
"jobs_util.go",
"knex.go",
"kv.go",
"kvbench.go",
Expand Down
Loading

0 comments on commit c457110

Please sign in to comment.