Nahappan Somasundaram created AMBARI-12909:
----------------------------------------------
Summary: Existence of empty package folder in stack definition
breaks the service
Key: AMBARI-12909
URL: https://issues.apache.org/jira/browse/AMBARI-12909
Project: Ambari
Issue Type: Bug
Components: ambari-agent
Affects Versions: 2.2.0
Reporter: Nahappan Somasundaram
Assignee: Nahappan Somasundaram
Priority: Critical
Fix For: 2.2.0
In a deployment, if somehow an empty package folder ended up in the folder
"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package". This
resulted in the creation of an empty archive.zip file. Its an easy repro - just
create an empty folder and restart Ambari Server.
The empty zip file is shipped to the agents where they fail trying to unzip the
file.
We should log an error and move on rather than failing.
WARNING 2015-06-24 13:17:51,226 FileCache.py:144 - Error occured during cache
update. Error tolerate setting is set to true, so ignoring this error and
continuing with current cache. Error details: Can not unpack zip file to
directory /var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HIVE/package :
File is not a zip file
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)