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

Ambari server becomes unusable if numeric value is specified as long

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: ambari-server
    • Labels:
      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

        1. AMBARI-22499.patch
          5 kB
          Doroszlai, Attila

          Issue Links

            Activity

              People

              • Assignee:
                adoroszlai Doroszlai, Attila
                Reporter:
                adoroszlai Doroszlai, Attila
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: