Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-22499

Ambari server becomes unusable if numeric value is specified as long

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • ambari-server
    • None

    Description

      Configure numeric property (eg. hive.compactor.worker.timeout) with value specified as long (eg. 86400L). Ambari UI becomes unresponsive due to being flooded of the following exception:

      17 Nov 2017 13:32:29,464  WARN [ambari-hearbeat-monitor] HeartbeatMonitor:130 - Exception received
      java.lang.NumberFormatException: For input string: "86400L"
              at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
              at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
              at java.lang.Double.parseDouble(Double.java:538)
              at org.apache.ambari.server.state.ConfigHelper.valuesAreEqual(ConfigHelper.java:1515)
              at org.apache.ambari.server.state.ConfigHelper.findChangedKeys(ConfigHelper.java:1497)
              at org.apache.ambari.server.state.ConfigHelper.calculateIsStaleConfigs(ConfigHelper.java:1352)
              at org.apache.ambari.server.state.ConfigHelper.isStaleConfigs(ConfigHelper.java:476)
              at org.apache.ambari.server.state.ConfigHelper.isStaleConfigs(ConfigHelper.java:470)
              at org.apache.ambari.server.agent.HeartbeatMonitor.createStatusCommand(HeartbeatMonitor.java:317)
              at org.apache.ambari.server.agent.HeartbeatMonitor.generateStatusCommands(HeartbeatMonitor.java:225)
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            adoroszlai Attila Doroszlai
            adoroszlai Attila Doroszlai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment