Skip to content

Commit 1b98045

Browse files
committed
failure-injection: add disk stall failure modes
This change adds cgroup and dmsetup disk stalls to the failure injection library. A majority of this logic is a port of the existing disk stall implementations found in roachtestutil, however several additions were added to make cleanup and restore of said failures restore the system back to it's original state.
1 parent 5d32089 commit 1b98045

File tree

8 files changed

+873
-35
lines changed

8 files changed

+873
-35
lines changed

Diff for: pkg/cmd/roachtest/tests/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ go_library(
226226
"//pkg/clusterversion",
227227
"//pkg/cmd/cmpconn",
228228
"//pkg/cmd/roachprod-microbench/util",
229+
"//pkg/cmd/roachprod/grafana",
229230
"//pkg/cmd/roachtest/cluster",
230231
"//pkg/cmd/roachtest/clusterstats",
231232
"//pkg/cmd/roachtest/grafana",

Diff for: pkg/cmd/roachtest/tests/failure_injection.go

+265-25
Large diffs are not rendered by default.

Diff for: pkg/roachprod/failureinjection/failures/BUILD.bazel

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
33
go_library(
44
name = "failures",
55
srcs = [
6+
"disk_stall.go",
67
"failure.go",
78
"latency.go",
89
"network_partition.go",
@@ -14,6 +15,8 @@ go_library(
1415
"//pkg/roachprod",
1516
"//pkg/roachprod/install",
1617
"//pkg/roachprod/logger",
18+
"//pkg/util/retry",
19+
"//pkg/util/timeutil",
1720
"@com_github_cockroachdb_errors//:errors",
1821
],
1922
)

0 commit comments

Comments
 (0)