@@ -1941,24 +1941,20 @@ def test_removal_of_legacy_default_defaulted(self, wipe_cache: bool):
1941
1941
# upgraded clusters.
1942
1942
self ._upgrade (wipe_cache , self .intermediate_version )
1943
1943
self ._check_value_everywhere ("space_management_enable" , False )
1944
- self ._check_value_everywhere ("retention_local_strict" , True )
1945
1944
1946
- # in >=23.3 (using upstream build) space management should be enabled by
1947
- # default provided that it wasn't explicitly disabled in 23.2. in this
1948
- # case no configs were changed so it should be enabled now.
1945
+ # in >=23.3 space management should be enabled by default provided that
1946
+ # it wasn't explicitly disabled in 23.2.
1949
1947
self ._upgrade (wipe_cache )
1950
1948
self ._check_value_everywhere ("space_management_enable" , True )
1951
- self ._check_value_everywhere ("retention_local_strict" , False )
1952
1949
1953
1950
# survives a restart
1954
1951
self .redpanda .restart_nodes (self .redpanda .nodes )
1955
1952
self ._check_value_everywhere ("space_management_enable" , True )
1956
- self ._check_value_everywhere ("retention_local_strict" , False )
1957
1953
1958
1954
@cluster (num_nodes = 3 )
1959
1955
@parametrize (wipe_cache = True )
1960
1956
@parametrize (wipe_cache = False )
1961
- def test_removal_of_legacy_default_disabled (self , wipe_cache : bool ):
1957
+ def test_removal_of_legacy_default_overriden (self , wipe_cache : bool ):
1962
1958
# in 23.1 space management feature does not exist
1963
1959
old_version , _ = self .installer .latest_for_line (self .legacy_version )
1964
1960
self .installer .install (self .redpanda .nodes , old_version )
@@ -1968,26 +1964,21 @@ def test_removal_of_legacy_default_disabled(self, wipe_cache: bool):
1968
1964
# upgraded clusters.
1969
1965
self ._upgrade (wipe_cache , self .intermediate_version )
1970
1966
self ._check_value_everywhere ("space_management_enable" , False )
1971
- self ._check_value_everywhere ("retention_local_strict" , True )
1972
1967
1973
- # the interface seems to ignore setting a value to its current value. so
1974
- # we enable then disable to make sure it gets through.
1968
+ # we need to toggle it to get it to stick since the api seems to not
1969
+ # change the underlying value explicitly if its default is that value.
1970
+ # the legacy default bits here are to blame for the weirdness i presume
1975
1971
self .redpanda .set_cluster_config ({"space_management_enable" : True })
1976
1972
self .redpanda .set_cluster_config ({"space_management_enable" : False })
1977
- self .redpanda .set_cluster_config ({"retention_local_strict" : False })
1978
- self .redpanda .set_cluster_config ({"retention_local_strict" : True })
1979
1973
1980
- # in >=23.3 (using upstream build) space management should be enabled by
1981
- # default provided that it wasn't explicitly disabled in 23.2. in this
1982
- # case we disabled it in 23.2 state so it should still be disabled here.
1974
+ # in >=23.3 space management should be enabled by default provided that
1975
+ # it wasn't explicitly disabled in 23.2.
1983
1976
self ._upgrade (wipe_cache )
1984
1977
self ._check_value_everywhere ("space_management_enable" , False )
1985
- self ._check_value_everywhere ("retention_local_strict" , True )
1986
1978
1987
1979
# survives a restart
1988
1980
self .redpanda .restart_nodes (self .redpanda .nodes )
1989
1981
self ._check_value_everywhere ("space_management_enable" , False )
1990
- self ._check_value_everywhere ("retention_local_strict" , True )
1991
1982
1992
1983
1993
1984
class ClusterConfigUnknownTest (RedpandaTest ):
0 commit comments