Skip to content

Commit

Permalink
Merge #133611
Browse files Browse the repository at this point in the history
133611: sql/row: deflake TestExternalRowDataDistSQL r=DrewKimball a=michae2

This test runs `ALTER TABLE RELOCATE` to move leaseholders to specific nodes. When running with a secondary tenant, the tenant needs to be given the `can_admin_relocate_range` capability. The test was doing this, but I think it needs to try the ALTER TABLE RELOCATE a few times in case the capability hasn't yet gone into effect.

Fixes: #133598

Release note: None

Co-authored-by: Michael Erickson <[email protected]>
  • Loading branch information
craig[bot] and michae2 committed Oct 28, 2024
2 parents 66a4a76 + b0e2dec commit 41d3a4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/sql/row/external_row_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ func TestExternalRowDataDistSQL(t *testing.T) {

// Place leaseholders on nodes 3, 4, 5.
r0.Exec(t, `ALTER TABLE t SPLIT AT VALUES (2), (4)`)
r0.Exec(t, `ALTER TABLE t RELOCATE VALUES (ARRAY[3], 1), (ARRAY[4], 3), (ARRAY[5], 5)`)
r0.ExecSucceedsSoon(
t, `ALTER TABLE t RELOCATE VALUES (ARRAY[3], 1), (ARRAY[4], 3), (ARRAY[5], 5)`,
)

asOf := hlc.Timestamp{WallTime: timeutil.Now().UnixNano()}

Expand Down

0 comments on commit 41d3a4e

Please sign in to comment.