Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16265

Configuration#getTimeDuration is not consistent between default value and manual settings.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.4, 3.3.0, 3.2.1, 3.1.3
    • None
    • None
    • Reviewed

    Description

      When call getTimeDuration like this:

      conf.getTimeDuration("nn.interval", 10, TimeUnit.SECONDS, TimeUnit.MILLISECONDS);

       If "nn.interval" is set manually or configured in xml file, 10000 will be retrurned.
      If not, 10 will be returned while 10000 is expected.
      The logic is not consistent.

      Attachments

        1. HDFS-14436.001.patch
          2 kB
          star
        2. HADOOP-16265-trunk.002.patch
          2 kB
          star
        3. HADOOP-16265-trunk.003.patch
          2 kB
          star

        Issue Links

          Activity

            People

              starphin star
              starphin star
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: