[
https://issues.apache.org/jira/browse/AMBARI-20946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Diego Santesteban updated AMBARI-20946:
---------------------------------------
Status: Patch Available (was: Open)
I added an extra case in resourceFilesKeeper.py to recreate the archive.zip
file if it doesn't exist, even when the saved and current directory hashes are
matching.
I added one new test case to make sure this case is working, and modified one
existing test case to make it specific for the other case (where the
archive.zip file does exist and the hashes match).
> Zip file with a service's "package" subdirectory is not recreated if the old
> zip file is removed but the archived hash file exists
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-20946
> URL: https://issues.apache.org/jira/browse/AMBARI-20946
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.5.0
> Reporter: Diego Santesteban
> Priority: Minor
> Fix For: trunk
>
> Attachments: AMBARI-20946.patch
>
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> When Ambari recreates the archive.zip file for a service's "package"
> directory (to distribute to Ambari Agents), it creates a .hash file that
> checks if the archive should be recreated in the future.
> If the .hash file is removed but the archive.zip is not, the archive will
> always be recreated.
> However, if the .hash file exists and matches the current directory's hash
> (i.e. no changes have been made in the directory), Ambari won't recreate the
> archive file, even if it was removed.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)