ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-5632) tag exists problem when running config updates in sequence w/o a sleep
Date Wed, 30 Apr 2014 10:33:15 GMT
Dmitry Lysnichenko created AMBARI-5632:
------------------------------------------

             Summary: tag exists problem when running config updates in sequence w/o a sleep
                 Key: AMBARI-5632
                 URL: https://issues.apache.org/jira/browse/AMBARI-5632
             Project: Ambari
          Issue Type: Bug
          Components: controller
    Affects Versions: 1.5.0
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
            Priority: Critical
             Fix For: 1.5.1


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

I run the following in a testconfigs.sh script

{code}
/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
{code}

The second and third calls fail with the following:

{code}
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
{code}

Looks like the tag version is getting re-used.

So I add in a sleep between calls.
{code}
/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
{code}

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

{code}
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
{code}

Server is functioning and available.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message