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)
      
      1. AMBARI-22499.patch
        5 kB
        Doroszlai, Attila

        Issue Links

          Activity

          Hide
          hadoopqa Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12898849/AMBARI-22499.patch
          against trunk revision .

          -1 patch. Top-level trunk compilation may be broken.

          Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/12713//console

          This message is automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12898849/AMBARI-22499.patch against trunk revision . -1 patch . Top-level trunk compilation may be broken. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/12713//console This message is automatically generated.
          Hide
          adoroszlai Doroszlai, Attila added a comment -

          Committed to trunk.

          Show
          adoroszlai Doroszlai, Attila added a comment - Committed to trunk .
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #8432 (See https://builds.apache.org/job/Ambari-trunk-Commit/8432/)
          AMBARI-22499. Ambari server becomes unusable when config properties are (adoroszlai: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1d4cbc8aca2eddd0294b27755ec5769c66bf6b80)

          • (edit) ambari-server/src/test/java/org/apache/ambari/server/state/ConfigHelperTest.java
          • (edit) ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #8432 (See https://builds.apache.org/job/Ambari-trunk-Commit/8432/ ) AMBARI-22499 . Ambari server becomes unusable when config properties are (adoroszlai: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1d4cbc8aca2eddd0294b27755ec5769c66bf6b80 ) (edit) ambari-server/src/test/java/org/apache/ambari/server/state/ConfigHelperTest.java (edit) ambari-server/src/main/java/org/apache/ambari/server/state/ConfigHelper.java

            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:

                Development