Skip to content

Commit ea1a0a2

Browse files
committed
roachtest: deflake disk-full roachtest
This is a speculative fix for a disk-full roachtest failure. This roachtest induces an out-of-disk scenario on a node and ensures that removing the automatic emergency ballast allows recovery. In #153445 it appears disk space is exhausted on the node, but the node never notices because the write workload is insufficient to trigger any write I/O to new pages. This commit adjusts the disk-full roachtest's workload to run a little longer (10m vs 4m) and to write larger-sized values (512-byte) to ensure we continue to write a nontrivial volume of data after we intentionally exhaust available disk space. Epic: none Fixes: #153445. Release note: none
1 parent e4db2dd commit ea1a0a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cmd/roachtest/tests/disk_full.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ func registerDiskFull(r registry.Registry) {
5454
m.Go(func(ctx context.Context) error {
5555
cmd := fmt.Sprintf(
5656
"./cockroach workload run kv --tolerate-errors --init --read-percent=0"+
57-
" --concurrency=10 --duration=4m {pgurl:2-%d}",
57+
" --min-block-bytes=512 --max-block-bytes=512"+
58+
" --concurrency=10 --duration=10m {pgurl:2-%d}",
5859
len(c.CRDBNodes()))
5960
c.Run(ctx, option.WithNodes(c.WorkloadNode()), cmd)
6061
return nil

0 commit comments

Comments
 (0)