Skip to content

Commit

Permalink
Merge pull request cockroachdb#63919 from ajstorm/backport21.1-63635
Browse files Browse the repository at this point in the history
release-21.1: multiregionccl: deflake TestIndexCleanupAfterAlterFromRegionalByRow
  • Loading branch information
ajstorm authored Apr 20, 2021
2 parents ee2d8d4 + 2be11e1 commit 0564fea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/ccl/multiregionccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ go_test(
"//pkg/jobs",
"//pkg/keys",
"//pkg/kv",
"//pkg/kv/kvserver",
"//pkg/roachpb",
"//pkg/security",
"//pkg/security/securitytest",
Expand Down
16 changes: 15 additions & 1 deletion pkg/ccl/multiregionccl/regional_by_row_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/jobs"
"github.com/cockroachdb/cockroach/pkg/keys"
"github.com/cockroachdb/cockroach/pkg/kv"
"github.com/cockroachdb/cockroach/pkg/kv/kvserver"
"github.com/cockroachdb/cockroach/pkg/roachpb"
"github.com/cockroachdb/cockroach/pkg/sql"
"github.com/cockroachdb/cockroach/pkg/sql/catalog/catalogkv"
Expand Down Expand Up @@ -566,7 +567,20 @@ func TestIndexCleanupAfterAlterFromRegionalByRow(t *testing.T) {
} {
t.Run(tc.locality, func(t *testing.T) {
_, sqlDB, cleanup := multiregionccltestutils.TestingCreateMultiRegionCluster(
t, 3 /* numServers */, base.TestingKnobs{}, nil, /* baseDir */
t, 3 /* numServers */, base.TestingKnobs{
Store: &kvserver.StoreTestingKnobs{
// Disable the merge queue because it makes this test flakey
// under stress. Consider changing this when admin commands are
// better synchronized leading to less thrashing of the range cache.
// We may also need to retry ClearRange operations which bump into
// the GC threshold. Generally that's not a concern because
// generally that threshold isn't super small. The problem with
// ranges is that when they merge, as may happen during the parallel
// execution of a big ClearRange is that the highest threshold will
// be inherited.
DisableMergeQueue: true,
},
}, nil, /* baseDir */
)
defer cleanup()

Expand Down

0 comments on commit 0564fea

Please sign in to comment.