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

Hadoop QA commented on AMBARI-15011:
------------------------------------

{color:green}+1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12788117/AMBARI-15011-trunk.v1.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

    {color:green}+1 tests included{color}.  The patch appears to include 7 new 
or modified test files.

    {color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in 
ambari-server.

Test results: 
https://builds.apache.org/job/Ambari-trunk-test-patch/5401//testReport/
Console output: 
https://builds.apache.org/job/Ambari-trunk-test-patch/5401//console

This message is automatically generated.

> Decrease the load on ambari database after cluster creation
> -----------------------------------------------------------
>
>                 Key: AMBARI-15011
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15011
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-server
>            Reporter: Sebastian Toader
>            Assignee: Sebastian Toader
>            Priority: Critical
>             Fix For: 2.2.2
>
>         Attachments: AMBARI-15011-branch-2.2.v1.patch, 
> AMBARI-15011-trunk.v1.patch
>
>
> Decrease the load generated by queries that are periodically executed after 
> cluster creation.
> Queries executed frequently:
> {code}
> SELECT t0.service_config_id, t0.cluster_id, t0.create_timestamp, t0.group_id, 
> t0.note, t0.service_name, t0.user_name, t0.version, t0.stack_id FROM 
> serviceconfig t0 WHERE ((t0.cluster_id = @P0) AND (t0.create_timestamp = 
> (SELECT MAX(t1.create_timestamp) FROM serviceconfig t1 WHERE 
> (((t1.service_name = t0.service_name) AND (t1.cluster_id = @P1)) AND 
> (t1.group_id IS NULL))))) 
> {code}
> {code}
> SELECT MAX(t0.skippable), MIN(t1.start_time), MAX(t1.end_time), t1.stage_id, 
> SUM(CASE  WHEN (t1.status = @P0) THEN @P1 ELSE @P2 END), SUM(CASE  WHEN 
> (t1.status = @P3) THEN @P4 ELSE @P5 END), SUM(CASE  WHEN (t1.status = @P6) 
> THEN @P7 ELSE @P8 END), SUM(CASE  WHEN (t1.status = @P9) THEN @P10 ELSE @P11 
> END), SUM(CASE  WHEN (t1.status = @P12) THEN @P13 ELSE @P14 END), SUM(CASE  
> WHEN (t1.status = @P15) THEN @P16 ELSE @P17 END), SUM(CASE  WHEN (t1.status = 
> @P18) THEN @P19 ELSE @P20 END), SUM(CASE  WHEN (t1.status = @P21) THEN @P22 
> ELSE @P23 END), SUM(CASE  WHEN (t1.status = @P24) THEN @P25 ELSE @P26 END), 
> SUM(CASE  WHEN (t1.status = @P27) THEN @P28 ELSE @P29 END), SUM(CASE  WHEN 
> (t1.status = @P30) THEN @P31 ELSE @P32 END) FROM stage t0, host_role_command 
> t1 WHERE ((t0.stage_id = t1.stage_id) AND (t0.request_id = t1.request_id)) 
> GROUP BY t1.request_id, t1.stage_id HAVING (t1.request_id = @P33)
> {code}
> {code}
> SELECT DISTINCT t0.task_id FROM host_role_command t0, hosts t1 WHERE 
> ((((t1.host_name = @P0) AND (t0.role = @P1)) AND (t0.status = @P2)) AND 
> (t1.host_id = t0.host_id)) ORDER BY t0.task_id
> {code}
> {code}
> SELECT DISTINCT task_id FROM host_role_command WHERE ((role = @P0) AND 
> (status = @P1)) ORDER BY task_id
> {code}
> {code}
> SELECT COUNT(task_id) FROM host_role_command WHERE (status IN 
> (@P0,@P1,@P2,@P3,@P4,@P5))
> {code}



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

Reply via email to