Skip to content

Commit

Permalink
kvserver: favor a more expansive knob when disabling..
Browse files Browse the repository at this point in the history
..span configs.

Release note: None
  • Loading branch information
irfansharif committed Jan 24, 2022
1 parent 2ec9cdf commit dedcec7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
15 changes: 7 additions & 8 deletions pkg/kv/kvserver/client_split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1011,11 +1011,11 @@ func TestStoreZoneUpdateAndRangeSplit(t *testing.T) {

ctx := context.Background()
serv, _, _ := serverutils.StartServer(t, base.TestServerArgs{
// This test was written with the SystemConfigSpan in mind.
DisableSpanConfigs: true,
Knobs: base.TestingKnobs{
Store: &kvserver.StoreTestingKnobs{
DisableMergeQueue: true,
// This test was written with the SystemConfigSpan in mind.
UseSystemConfigSpanForQueues: true,
},
},
})
Expand Down Expand Up @@ -1082,11 +1082,11 @@ func TestStoreRangeSplitWithMaxBytesUpdate(t *testing.T) {

ctx := context.Background()
serv, _, _ := serverutils.StartServer(t, base.TestServerArgs{
// This test was written with the system config span in mind.
DisableSpanConfigs: true,
Knobs: base.TestingKnobs{
Store: &kvserver.StoreTestingKnobs{
DisableMergeQueue: true,
// This test was written with the system config span in mind.
UseSystemConfigSpanForQueues: true,
},
},
})
Expand Down Expand Up @@ -3562,12 +3562,11 @@ func TestStoreRangeSplitAndMergeWithGlobalReads(t *testing.T) {

ctx := context.Background()
serv, _, _ := serverutils.StartServer(t, base.TestServerArgs{
DisableSpanConfigs: true,
Knobs: base.TestingKnobs{
Store: &kvserver.StoreTestingKnobs{
DisableMergeQueue: true,
// This test was written with the system config span in mind.
UseSystemConfigSpanForQueues: true,
TestingResponseFilter: respFilter,
DisableMergeQueue: true,
TestingResponseFilter: respFilter,
},
},
})
Expand Down
3 changes: 3 additions & 0 deletions pkg/kv/kvserver/testing_knobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ type StoreTestingKnobs struct {
// UseSystemConfigSpanForQueues uses the system config span infrastructure
// for internal queues (as opposed to the span configs infrastructure). This
// is used only for (old) tests written with the system config span in mind.
//
// TODO(irfansharif): Get rid of this knob, maybe by first moving
// DisableSpanConfigs into a testing knob instead of a server arg.
UseSystemConfigSpanForQueues bool
}

Expand Down

0 comments on commit dedcec7

Please sign in to comment.