[ 
https://issues.apache.org/jira/browse/AMBARI-23380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AMBARI-23380:
------------------------------------
    Labels: pull-request-available unit-test  (was: unit-test)

> Fix intermittent "No such file or directory" error in TestHostCleanup
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-23380
>                 URL: https://issues.apache.org/jira/browse/AMBARI-23380
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>    Affects Versions: 2.7.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>            Priority: Major
>              Labels: pull-request-available, unit-test
>             Fix For: 2.7.0
>
>
> Fix intermittent "No such file or directory" error in TestHostCleanup
> {noformat}
> ======================================================================
> ERROR: test_do_cleanup_all (TestHostCleanup.TestHostCleanup)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/home/jenkins/jenkins-slave/workspace/Ambari-Github-PullRequest-Builder/ambari-common/src/test/python/mock/mock.py",
>  line 1199, in patched
>     return func(*args, **keywargs)
>   File 
> "/home/jenkins/jenkins-slave/workspace/Ambari-Github-PullRequest-Builder/ambari-agent/src/test/python/ambari_agent/TestHostCleanup.py",
>  line 233, in test_do_cleanup_all
>     self.hostcleanup.do_cleanup(propertyMap)
>   File 
> "/home/jenkins/jenkins-slave/workspace/Ambari-Github-PullRequest-Builder/ambari-agent/src/main/python/ambari_agent/HostCleanup.py",
>  line 168, in do_cleanup
>     self.do_delete_by_owner(userIds, FOLDER_LIST)
>   File 
> "/home/jenkins/jenkins-slave/workspace/Ambari-Github-PullRequest-Builder/ambari-agent/src/main/python/ambari_agent/HostCleanup.py",
>  line 514, in do_delete_by_owner
>     stat = os.stat(fileToCheck)
> OSError: [Errno 2] No such file or directory: 
> '/tmp/symlink2120964127269148256test_link'
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to