Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrades: remove migration that waits for schema changes #100342

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions pkg/clusterversion/cockroach_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,6 @@ const (
TODODelete_V22_2SetRoleOptionsUserIDColumnNotNull
// TODODelete_V22_2RangefeedUseOneStreamPerNode changes rangefeed implementation to use 1 RPC stream per node.
TODODelete_V22_2RangefeedUseOneStreamPerNode
// TODODelete_V22_2NoNonMVCCAddSSTable adds a migration which waits for all
// schema changes to complete. After this point, no non-MVCC
// AddSSTable calls will be used outside of tenant streaming.
TODODelete_V22_2NoNonMVCCAddSSTable
// TODODelete_V22_2TTLDistSQL uses DistSQL to distribute TTL SELECT/DELETE statements to
// leaseholder nodes.
TODODelete_V22_2TTLDistSQL
Expand Down Expand Up @@ -678,10 +674,6 @@ var rawVersionsSingleton = keyedVersions{
Key: TODODelete_V22_2RangefeedUseOneStreamPerNode,
Version: roachpb.Version{Major: 22, Minor: 1, Internal: 60},
},
{
Key: TODODelete_V22_2NoNonMVCCAddSSTable,
Version: roachpb.Version{Major: 22, Minor: 1, Internal: 62},
},
{
Key: TODODelete_V22_2TTLDistSQL,
Version: roachpb.Version{Major: 22, Minor: 1, Internal: 68},
Expand Down
3 changes: 0 additions & 3 deletions pkg/upgrade/upgrades/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ go_library(
"tenant_table_migration.go",
"upgrades.go",
"wait_for_del_range_in_gc_job.go",
"wait_for_schema_changes.go",
"web_sessions_table_user_id_migration.go",
],
importpath = "github.com/cockroachdb/cockroach/pkg/upgrade/upgrades",
Expand Down Expand Up @@ -123,7 +122,6 @@ go_test(
"system_statistics_activity_test.go",
"tenant_table_migration_test.go",
"wait_for_del_range_in_gc_job_test.go",
"wait_for_schema_changes_test.go",
"web_sessions_table_user_id_migration_test.go",
],
args = ["-test.timeout=895s"],
Expand Down Expand Up @@ -185,7 +183,6 @@ go_test(
"//pkg/util/intsets",
"//pkg/util/leaktest",
"//pkg/util/log",
"//pkg/util/protoutil",
"//pkg/util/syncutil",
"//pkg/util/timeutil",
"@com_github_cockroachdb_errors//:errors",
Expand Down
10 changes: 10 additions & 0 deletions pkg/upgrade/upgrades/schemachanger_elements_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
gosql "database/sql"
"sync/atomic"
"testing"
"time"

"github.com/cockroachdb/cockroach/pkg/clusterversion"
"github.com/cockroachdb/cockroach/pkg/jobs"
Expand All @@ -27,6 +28,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/testutils"
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
"github.com/cockroachdb/cockroach/pkg/util"
"github.com/cockroachdb/cockroach/pkg/util/ctxgroup"
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
"github.com/cockroachdb/cockroach/pkg/util/log"
Expand Down Expand Up @@ -203,3 +205,11 @@ func TestUpgradeSchemaChangerElements(t *testing.T) {
})
}
}

func shortInterval() *time.Duration {
shortInterval := 10 * time.Millisecond
if util.RaceEnabled {
shortInterval *= 5
}
return &shortInterval
}
6 changes: 0 additions & 6 deletions pkg/upgrade/upgrades/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,6 @@ var upgrades = []upgradebase.Upgrade{
upgrade.NoPrecondition,
ensureSQLSchemaTelemetrySchedule,
),
upgrade.NewTenantUpgrade(
"wait for all in-flight schema changes",
toCV(clusterversion.TODODelete_V22_2NoNonMVCCAddSSTable),
upgrade.NoPrecondition,
waitForAllSchemaChanges,
),
upgrade.NewTenantUpgrade("fix corrupt user-file related table descriptors",
toCV(clusterversion.TODODelete_V22_2FixUserfileRelatedDescriptorCorruption),
upgrade.NoPrecondition,
Expand Down
78 changes: 0 additions & 78 deletions pkg/upgrade/upgrades/wait_for_schema_changes.go

This file was deleted.

Loading