Skip to content

Commit a9c42c3

Browse files
authored
Merge pull request #160913 from miraradeva/backport26.1-160647
release-26.1: kvnemesis: disable SQL ops in safety mode
2 parents 5a19643 + cd07a0f commit a9c42c3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/kv/kvnemesis/kvnemesis_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,11 @@ func TestKVNemesisMultiNode_Partition_Safety(t *testing.T) {
514514
testGeneratorConfig: func(cfg *GeneratorConfig) {
515515
cfg.Ops.Fault.AddNetworkPartition = 1
516516
cfg.Ops.Fault.RemoveNetworkPartition = 1
517+
// This is the only operation that executes via SQL. As such, we suspect
518+
// context cancellations are not always respected, resulting in the test
519+
// hanging. The current suspect is lib/pq. See #160293.
520+
// TODO(mira): Consider toggling global reads by editing the span config.
521+
cfg.Ops.ChangeZone.ToggleGlobalReads = 0
517522
},
518523
})
519524
}

0 commit comments

Comments
 (0)