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

UpgradeCatalogs should use integer specifiers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2
    • Component/s: ambari-server
    • Labels:
      None

      Description

      Every invocation of MessageFormat.format() should use a number specifier:

      {0,number,#}

      where a long is used to build queries.

      This issue can occur with any Ambari DB when the cluster has 1000+ components. Therefore, there is a high risk of this problem occurring on a cluster with 200+ hosts (which translates to 1000+ components, assuming 5 components per host).

        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/12755148/AMBARI-13057.patch
        against trunk revision .

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

        Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3758//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/12755148/AMBARI-13057.patch against trunk revision . -1 patch . Top-level trunk compilation may be broken. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/3758//console This message is automatically generated.
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Ambari-branch-2.1 #513 (See https://builds.apache.org/job/Ambari-branch-2.1/513/)
        AMBARI-13057. UpgradeCatalogs should use integer specifiers (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=902cb2316e94bb7c37a54fa4257b0c57dbc8a362)

        • ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog211Test.java
        • ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog211.java
        • ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #513 (See https://builds.apache.org/job/Ambari-branch-2.1/513/ ) AMBARI-13057 . UpgradeCatalogs should use integer specifiers (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=902cb2316e94bb7c37a54fa4257b0c57dbc8a362 ) ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog211Test.java ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog211.java ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Ambari-trunk-Commit #3421 (See https://builds.apache.org/job/Ambari-trunk-Commit/3421/)
        AMBARI-13057. UpgradeCatalogs should use integer specifiers (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=eb4a68d5ca1582867ec7f8511f42bdb22cf732e2)

        • ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog211Test.java
        • ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog211.java
        • ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #3421 (See https://builds.apache.org/job/Ambari-trunk-Commit/3421/ ) AMBARI-13057 . UpgradeCatalogs should use integer specifiers (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=eb4a68d5ca1582867ec7f8511f42bdb22cf732e2 ) ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog211Test.java ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog211.java ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java

          People

          • Assignee:
            ncole@hortonworks.com Nate Cole
            Reporter:
            ncole@hortonworks.com Nate Cole
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development