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

tag exists problem when running config updates in sequence w/o a sleep

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.5.0
    • 1.6.1
    • ambari-server
    • None

    Description

      If I call multiple config updates in a row, I get an exception.

      I run the following in a testconfigs.sh script

      /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin set c6401.ambari.apache.org MyCluster hbase-site hbase.hstore.flush.retries.number 250
      /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin set c6401.ambari.apache.org MyCluster hbase-site hbase.hstore.flush.retries.number 121
      /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin set c6401.ambari.apache.org MyCluster hbase-site hbase.hstore.flush.retries.number 121
      

      The second and third calls fail with the following:

      USERID=admin
      PASSWORD=admin
      ########## Performing 'set' hbase.hstore.flush.retries.number:250 on (Site:hbase-site, Tag:version1397244782000)
      ########## Config found. Skipping origin value
      ########## PUTting json into: doSet_version1397244970000.json
      ########## NEW Site:hbase-site, Tag:version1397244970000
      USERID=admin
      PASSWORD=admin
      ########## Performing 'set' hbase.hstore.flush.retries.number:121 on (Site:hbase-site, Tag:version1397244970000)
      ########## Config found. Skipping origin value
      ########## PUTting json into: doSet_version1397244970000.json
      {
        "status" : 500,
        "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Configuration with tag 'version1397244970000' exists for 'hbase-site'"
      }########## NEW Site:hbase-site, Tag:version1397244970000
      USERID=admin
      PASSWORD=admin
      ########## Performing 'set' hbase.hstore.flush.retries.number:121 on (Site:hbase-site, Tag:version1397244970000)
      ########## Config found. Skipping origin value
      ########## PUTting json into: doSet_version1397244970000.json
      {
        "status" : 500,
        "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system exception occurred: Configuration with tag 'version1397244970000' exists for 'hbase-site'"
      }########## NEW Site:hbase-site, Tag:version1397244970000
      

      Looks like the tag version is getting re-used.

      So I add in a sleep between calls.

      /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin set c6401.ambari.apache.org MyCluster hbase-site hbase.hstore.flush.retries.number 250
      sleep 2
      /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin set c6401.ambari.apache.org MyCluster hbase-site hbase.hstore.flush.retries.number 121
      sleep 2
      /var/lib/ambari-server/resources/scripts/configs.sh -u admin -p admin set c6401.ambari.apache.org MyCluster hbase-site hbase.hstore.flush.retries.number 121
      

      And things go thru fine, with the tag incremented properly.

      USERID=admin
      PASSWORD=admin
      ########## Performing 'set' hbase.hstore.flush.retries.number:250 on (Site:hbase-site, Tag:version1397244970000)
      ########## Config found. Skipping origin value
      ########## PUTting json into: doSet_version1397245036000.json
      ########## NEW Site:hbase-site, Tag:version1397245036000
      USERID=admin
      PASSWORD=admin
      ########## Performing 'set' hbase.hstore.flush.retries.number:121 on (Site:hbase-site, Tag:version1397245036000)
      ########## Config found. Skipping origin value
      ########## PUTting json into: doSet_version1397245039000.json
      ########## NEW Site:hbase-site, Tag:version1397245039000
      USERID=admin
      PASSWORD=admin
      ########## Performing 'set' hbase.hstore.flush.retries.number:121 on (Site:hbase-site, Tag:version1397245039000)
      ########## Config found. Skipping origin value
      ########## PUTting json into: doSet_version1397245041000.json
      ########## NEW Site:hbase-site, Tag:version1397245041000
      

      Server is functioning and available.

      Attachments

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: