diff --git a/pkg/cmd/roachtest/inconsistency.go b/pkg/cmd/roachtest/inconsistency.go index 24c3daebbbc8..2a277537feaf 100644 --- a/pkg/cmd/roachtest/inconsistency.go +++ b/pkg/cmd/roachtest/inconsistency.go @@ -74,9 +74,14 @@ func runInconsistency(ctx context.Context, t *test, c *cluster) { // 0x120408001000180020002800322a0a10000000000000000000000000000000001a1266616b65207472616e73616374696f6e20312a004a00 // 0x120408001000180020002800322a0a10000000000000000000000000000000001a1266616b65207472616e73616374696f6e20322a004a00 - c.Run(ctx, c.Node(1), "./cockroach debug pebble db set {store-dir} "+ + debugCmd := "pebble db set {store-dir}" + if !t.IsBuildVersion("v21.1.0") { + debugCmd = "rocksdb put --hex --db={store-dir}" + } + c.Run(ctx, c.Node(1), fmt.Sprintf("./cockroach debug %s "+ "hex:016b1202000174786e2d0000000000000000000000000000000000 "+ - "hex:12040800100018002000280032280a10000000000000000000000000000000001a1066616b65207472616e73616374696f6e2a004a00") + "hex:12040800100018002000280032280a10000000000000000000000000000000001a1066616b65207472616e73616374696f6e2a004a00", + debugCmd)) m := newMonitor(ctx, c) c.Start(ctx, t, nodes)