Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
If you try to unset a deprecated property in an CapacitySchedulerConfiguration object the value wont be removed.
Example failing Test for theĀ TestCapacitySchedulerConfiguration class
@Test public void testDeprecationFeatureWorks() { final String value = "VALUE"; final String goodName = "koko"; final String depName = "dfs.nfs.exports.allowed.hosts"; final CapacitySchedulerConfiguration csConf = createDefaultCsConf(); csConf.set(goodName, value); csConf.unset(goodName); assertNull(csConf.get(goodName)); csConf.set(depName, value); csConf.unset(depName); assertNull(csConf.get(depName)); // fails here }