Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-11348

Deprecated property can not be unset

    XMLWordPrintableJSON

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
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            bkosztolnik Bence Kosztolnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: