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

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

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.4, 3.3.0, 3.2.1, 3.1.3
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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. HADOOP-16265-trunk.003.patch
          2 kB
          star
        2. HADOOP-16265-trunk.002.patch
          2 kB
          star
        3. HDFS-14436.001.patch
          2 kB
          star

        Issue Links

          Activity

            People

            • Assignee:
              starphin star
              Reporter:
              starphin star

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment