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

Hadoop QA commented on AMBARI-18305:
------------------------------------

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

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

    {color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
                        Please justify why no new tests are needed for this 
patch.
                        Also please list what manual steps were performed to 
verify this patch.

    {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:red}-1 core tests{color}.  The test build failed in ambari-server 

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

This message is automatically generated.

> (2.5.0 fix) Ambari server upgrade script deletes all .pyc files
> ---------------------------------------------------------------
>
>                 Key: AMBARI-18305
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18305
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Dmitry Lysnichenko
>            Assignee: Dmitry Lysnichenko
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-18305.patch
>
>
> From customer case:
> We are trying upgrade Ambari from 2.2.2 to Ambari 2.4 with the latest 
> packages (1226).
> https://issues.apache.org/jira/browse/AMBARI-15947 - "Upgrading Ambari should 
> delete any pyc files"
> The patch contains the following two lines
> {code}
> AMBARI_SERVER="${ROOT}/usr/lib/python2.6/site-packages/ambari_server"
> find $AMBARI_SEVER/ -name *.pyc -exec rm {} \;
> {code}
> The AMBARI_SEVER typo basically executes "find / -name *.pyc -exec rm {} \;"
> on the root directory and deletes ALL pyc files from the ambari server 
> machine.
> This looks like a bug in the latest Ambari package we released yesterday.
> Considering the command has both "rm" and "*" in the same line, lets see if 
> we can use a safer strategy such as changing the CWD and then deleting files.



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

Reply via email to