Skip to content

Commit b5836a5

Browse files
craig[bot]jbowens
craig[bot]
andcommitted
Merge #109823
109823: ccl,roachtest: remove uses of storage.mvcc.range_tombstones.enabled r=bananabrick a=jbowens Remove uses of the `storage.mvcc.range_tombstones.enabled` cluster setting. This cluster setting is ignored in cluster version 23.1+. Epic: none Informs #97869. Release note: none Co-authored-by: Jackson Owens <[email protected]>
2 parents 46feddd + fe6a83d commit b5836a5

File tree

7 files changed

+10
-47
lines changed

7 files changed

+10
-47
lines changed

pkg/ccl/backupccl/tenant_backup_nemesis_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ func TestTenantBackupWithCanceledImport(t *testing.T) {
7070
)
7171
defer hostClusterCleanupFn()
7272

73-
hostSQLDB.Exec(t, "SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")
74-
hostSQLDB.Exec(t, "ALTER TENANT ALL SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")
75-
7673
tenant10, err := tc.Servers[0].StartTenant(ctx, base.TestTenantArgs{
7774
TenantID: roachpb.MustMakeTenantID(10),
7875
TestingKnobs: base.TestingKnobs{
@@ -143,10 +140,6 @@ func TestTenantBackupNemesis(t *testing.T) {
143140
)
144141
defer hostClusterCleanupFn()
145142

146-
// Range tombstones must be enabled for tenant backups to work correctly.
147-
hostSQLDB.Exec(t, "SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")
148-
hostSQLDB.Exec(t, "ALTER TENANT ALL SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")
149-
150143
tenant10, err := tc.Servers[0].StartTenant(ctx, base.TestTenantArgs{
151144
TenantID: roachpb.MustMakeTenantID(10),
152145
TestingKnobs: base.TestingKnobs{

pkg/ccl/backupccl/testdata/backup-restore/in-progress-import-rollback

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@
77
# - roll it back it back non-mvcc
88
# - run an inc backup and ensure we reintroduce the table spans
99

10-
# disabled to run within tenant as they don't have access to the
11-
# storage.mvcc.range_tombstones.enabled cluster setting
12-
new-cluster name=s1 beforeVersion=23_1_MVCCTombstones disable-tenant
10+
new-cluster name=s1
1311
----
1412

1513
###########
16-
# Case 1: an incremental backup captures a non-mvcc rollback
14+
# set up
1715
###########
1816

1917
exec-sql
@@ -36,12 +34,6 @@ exec-sql
3634
SET CLUSTER SETTING kv.bulkio.write_metadata_sst.enabled = false;
3735
----
3836

39-
40-
exec-sql
41-
SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = false;
42-
----
43-
44-
4537
exec-sql
4638
EXPORT INTO CSV 'nodelocal://1/export1/' FROM SELECT * FROM baz;
4739
----
@@ -163,8 +155,8 @@ ORDER BY
163155
----
164156
d foo table 3 full
165157
d foofoo table 4 full
166-
d foo table 0 incremental
167-
d foofoo table 1 incremental
158+
d foo table 3 incremental
159+
d foofoo table 7 incremental
168160

169161
query-sql
170162
SELECT
@@ -178,8 +170,8 @@ ORDER BY
178170
----
179171
d foo table 3 full
180172
d foofoo table 4 full
181-
d foo table 0 incremental
182-
d foofoo table 1 incremental
173+
d foo table 3 incremental
174+
d foofoo table 7 incremental
183175

184176

185177
query-sql
@@ -194,8 +186,8 @@ ORDER BY
194186
----
195187
d foo table 3 full
196188
d foofoo table 4 full
197-
d foo table 0 incremental
198-
d foofoo table 1 incremental
189+
d foo table 3 incremental
190+
d foofoo table 7 incremental
199191

200192

201193
# To verify the incremental backed up the pre-import state table, restore d and ensure all tables
@@ -242,11 +234,6 @@ exec-sql
242234
SET CLUSTER SETTING jobs.debug.pausepoints = 'import.after_ingest';
243235
----
244236

245-
246-
exec-sql
247-
SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true;
248-
----
249-
250237
exec-sql
251238
SET CLUSTER SETTING kv.bulkio.write_metadata_sst.enabled = false;
252239
----

pkg/ccl/backupccl/testdata/backup-restore/restore-on-fail-or-cancel-fast-drop

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ BACKUP INTO 'nodelocal://1/cluster_backup';
1919
new-cluster name=s2 nodes=1 share-io-dir=s1 disable-tenant
2020
----
2121

22-
exec-sql
23-
SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true;
24-
----
25-
2622
# Restore's OnFailOrCancel deletes descriptors which requires us to wait for no
2723
# versions of that descriptor to be leased before proceeding. Since our test fails
2824
# the job after the descriptors have been published, it's possible for them to be leased

pkg/ccl/backupccl/testdata/backup-restore/restore-on-fail-or-cancel-retry

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# disabled for tenants as they can't set storage.mvcc.range_tombstones.enabled
2-
new-cluster name=s1 nodes=1 disable-tenant
1+
new-cluster name=s1 nodes=1
32
----
43

54
subtest restore-retry
@@ -17,11 +16,7 @@ exec-sql
1716
BACKUP INTO 'nodelocal://1/cluster_backup';
1817
----
1918

20-
new-cluster name=s2 nodes=1 share-io-dir=s1 disable-tenant
21-
----
22-
23-
exec-sql
24-
SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true;
19+
new-cluster name=s2 nodes=1 share-io-dir=s1
2520
----
2621

2722
exec-sql

pkg/ccl/changefeedccl/changefeed_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3611,7 +3611,6 @@ func TestChangefeedFailOnTableOffline(t *testing.T) {
36113611
cdcTestNamedWithSystem(t, "reverted import fails changefeed with earlier cursor", func(t *testing.T, s TestServerWithSystem, f cdctest.TestFeedFactory) {
36123612
sysSQLDB := sqlutils.MakeSQLRunner(s.SystemDB)
36133613
sysSQLDB.Exec(t, "SET CLUSTER SETTING kv.bulk_io_write.small_write_size = '1'")
3614-
sysSQLDB.Exec(t, "SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")
36153614

36163615
sqlDB := sqlutils.MakeSQLRunner(s.DB)
36173616
sqlDB.Exec(t, `CREATE TABLE for_import (a INT PRIMARY KEY, b INT)`)

pkg/cmd/roachtest/tests/backup.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -954,10 +954,6 @@ func runBackupMVCCRangeTombstones(
954954
t.Status("configuring cluster")
955955
_, err := conn.Exec(`SET CLUSTER SETTING kv.bulk_ingest.max_index_buffer_size = '2gb'`)
956956
require.NoError(t, err)
957-
if config.tenantName == "" {
958-
_, err = conn.Exec(`SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = 't'`)
959-
require.NoError(t, err)
960-
}
961957
_, err = conn.Exec(`SET CLUSTER SETTING server.debug.default_vmodule = 'txn=2,sst_batcher=4,
962958
revert=2'`)
963959
require.NoError(t, err)

pkg/cmd/roachtest/tests/mvcc_gc.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ func runMVCCGC(ctx context.Context, t test.Test, c cluster.Cluster) {
9595
execSQLOrFail(fmt.Sprintf(`SET CLUSTER SETTING %s = $1`, name), value)
9696
}
9797

98-
// Explicitly enable range tombstones. Can be removed once ranges tombstones
99-
// are enabled by default.
100-
setClusterSetting("storage.mvcc.range_tombstones.enabled", true)
10198
// Protected timestamps prevent GC from collecting data, even with low ttl
10299
// we need to wait for protected ts to be moved. By reducing this interval
103100
// we ensure that data will always be collectable after ttl + 5s.

0 commit comments

Comments
 (0)