You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2016/02/09 17:37:18 UTC

[jira] [Commented] (AMBARI-14965) Ambari server lists service even though service creation fails

    [ https://issues.apache.org/jira/browse/AMBARI-14965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15139170#comment-15139170 ] 

Hadoop QA commented on AMBARI-14965:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12787089/rb43349.patch
  against trunk revision .

    {color:red}-1 patch{color}.  Top-level trunk compilation may be broken.

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

This message is automatically generated.

> Ambari server lists service even though service creation fails
> --------------------------------------------------------------
>
>                 Key: AMBARI-14965
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14965
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.2.0
>            Reporter: Ajit Kumar
>            Assignee: Ajit Kumar
>             Fix For: 2.4.0
>
>         Attachments: rb43349.patch
>
>
> If post request of service creation fails due to db error, Get request shows service is created. If you send post request again, it fails stating service already exists though DB doesn't have any corresponding entry.
> {code}
> $ curl -u admin:admin  -H 'X-Requested-By: ambari' -X POST http://c6401.ambari.apache.org:8080/api/v1/clusters/a/services/ZOOKEEPER
> {
>   "status": 500,
>   "message": "Server Error"
> }
> $ curl -u admin:admin  -H 'X-Requested-By: ambari' -X GET http://c6401.ambari.apache.org:8080/api/v1/clusters/a/services/
> {
>   "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/a/services/",
>   "items" : [
>     {
>       "href" : "http://c6401.ambari.apache.org:8080/api/v1/clusters/a/services/ZOOKEEPER",
>       "ServiceInfo" : {
>         "cluster_name" : "a",
>         "service_name" : "ZOOKEEPER"
>       }
>     }
>   ]
> }
> {code}
> {code}
> ambari=> select * from ambari.clusterservices;
>  service_instance_id | service_name | service_instance_name | cluster_id | service_enabled
> ---------------------+--------------+-----------------------+------------+-----------------
> (0 rows)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)