@@ -26,28 +26,25 @@ import (
2626
2727func registerClearRange (r registry.Registry ) {
2828 for _ , checks := range []bool {true , false } {
29- for _ , rangeTombstones := range []bool {true , false } {
30- checks := checks
31- rangeTombstones := rangeTombstones
32- r .Add (registry.TestSpec {
33- Name : fmt .Sprintf (`clearrange/checks=%t/rangeTs=%t` , checks , rangeTombstones ),
34- Owner : registry .OwnerStorage ,
35- // 5h for import, 90 for the test. The import should take closer
36- // to <3:30h but it varies.
37- Timeout : 5 * time .Hour + 90 * time .Minute ,
38- Cluster : r .MakeClusterSpec (10 , spec .CPU (16 )),
39- Leases : registry .MetamorphicLeases ,
40- Run : func (ctx context.Context , t test.Test , c cluster.Cluster ) {
41- runClearRange (ctx , t , c , checks , rangeTombstones )
42- },
43- })
44- }
29+ checks := checks
30+ r .Add (registry.TestSpec {
31+ Name : fmt .Sprintf (`clearrange/checks=%t` , checks ),
32+ Owner : registry .OwnerStorage ,
33+ // 5h for import, 90 for the test. The import should take closer
34+ // to <3:30h but it varies.
35+ Timeout : 5 * time .Hour + 90 * time .Minute ,
36+ Cluster : r .MakeClusterSpec (10 , spec .CPU (16 )),
37+ Leases : registry .MetamorphicLeases ,
38+ Run : func (ctx context.Context , t test.Test , c cluster.Cluster ) {
39+ runClearRange (ctx , t , c , checks )
40+ },
41+ })
4542 }
4643 // Using a separate clearrange test on zfs instead of randomly
4744 // using the same test, cause the Timeout might be different,
4845 // and may need to be tweaked.
4946 r .Add (registry.TestSpec {
50- Name : `clearrange/zfs/checks=true/rangeTs=true ` ,
47+ Name : `clearrange/zfs/checks=true` ,
5148 Owner : registry .OwnerStorage ,
5249 // 5h for import, 120 for the test. The import should take closer
5350 // to <3:30h but it varies.
@@ -56,33 +53,17 @@ func registerClearRange(r registry.Registry) {
5653 EncryptionSupport : registry .EncryptionMetamorphic ,
5754 Leases : registry .MetamorphicLeases ,
5855 Run : func (ctx context.Context , t test.Test , c cluster.Cluster ) {
59- runClearRange (ctx , t , c , true /* checks */ , true /* rangeTombstones */ )
56+ runClearRange (ctx , t , c , true /* checks */ )
6057 },
6158 })
6259}
6360
64- func runClearRange (
65- ctx context.Context ,
66- t test.Test ,
67- c cluster.Cluster ,
68- aggressiveChecks bool ,
69- useRangeTombstones bool ,
70- ) {
61+ func runClearRange (ctx context.Context , t test.Test , c cluster.Cluster , aggressiveChecks bool ) {
7162 c .Put (ctx , t .Cockroach (), "./cockroach" )
7263
7364 t .Status ("restoring fixture" )
7465 c .Start (ctx , t .L (), option .DefaultStartOpts (), install .MakeClusterSettings ())
7566
76- {
77- conn := c .Conn (ctx , t .L (), 1 )
78- if _ , err := conn .ExecContext (ctx ,
79- `SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = $1` ,
80- useRangeTombstones ); err != nil {
81- t .Fatal (err )
82- }
83- conn .Close ()
84- }
85-
8667 // NB: on a 10 node cluster, this should take well below 3h.
8768 tBegin := timeutil .Now ()
8869 c .Run (ctx , c .Node (1 ), "./cockroach" , "workload" , "fixtures" , "import" , "bank" ,
0 commit comments