Skip to content

Commit b39eb11

Browse files
committed
Revert "sql: temporarily switch back to WaitForOneVersion for table
version bumps" This reverts commit 6e91815 with some changes. Release note: None
1 parent cecd527 commit b39eb11

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

pkg/sql/catalog/lease/lease_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,6 @@ func TestWaitForNewVersion(testingT *testing.T) {
557557
defer leaktest.AfterTest(testingT)()
558558
defer log.Scope(testingT).Close(testingT)
559559

560-
skip.WithIssue(testingT, 152051)
561-
562560
var params base.TestClusterArgs
563561
params.ServerArgs.Knobs = base.TestingKnobs{
564562
SQLLeaseManager: &lease.ManagerTestingKnobs{

pkg/sql/conn_executor_jobs.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ func (ex *connExecutor) waitForNewVersionPropagation(
8484
continue
8585
}
8686

87-
// TODO(sql-foundations): Change this back to WaitForNewVersion once we
88-
// address the flaky behavior around privilege and role membership caching.
89-
if _, err := ex.planner.LeaseMgr().WaitForOneVersion(ex.Ctx(), idVersion.ID, cachedRegions,
87+
if _, err := ex.planner.LeaseMgr().WaitForNewVersion(ex.Ctx(), idVersion.ID, cachedRegions,
9088
retry.Options{
9189
InitialBackoff: time.Millisecond,
9290
MaxBackoff: time.Second,

pkg/sql/tests/allow_user_create_during_transaction_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
"github.com/cockroachdb/cockroach/pkg/base"
1414
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
15-
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
1615
"github.com/cockroachdb/cockroach/pkg/testutils/sqlutils"
1716
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
1817
"github.com/cockroachdb/cockroach/pkg/util/log"
@@ -25,8 +24,6 @@ func TestAllowUserCreateDuringTransaction(t *testing.T) {
2524
defer leaktest.AfterTest(t)()
2625
defer log.Scope(t).Close(t)
2726

28-
skip.WithIssue(t, 152043)
29-
3027
ctx := context.Background()
3128
s, sqlDB, _ := serverutils.StartServer(t, base.TestServerArgs{})
3229
defer s.Stopper().Stop(ctx)

0 commit comments

Comments
 (0)