Repository: ambari
Updated Branches:
  refs/heads/trunk 4c8a42b83 -> 92943cf6d


AMBARI-17593: Ambari server backup error - failure if backup size exceeds 4GB


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/92943cf6
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/92943cf6
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/92943cf6

Branch: refs/heads/trunk
Commit: 92943cf6d82f165d9651939c16ac1f70d97c75a9
Parents: 4c8a42b
Author: Nahappan Somasundaram <[email protected]>
Authored: Wed Jul 6 09:33:42 2016 -0700
Committer: Nahappan Somasundaram <[email protected]>
Committed: Wed Jul 6 18:08:03 2016 -0700

----------------------------------------------------------------------
 ambari-server/src/main/python/ambari_server/BackupRestore.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/92943cf6/ambari-server/src/main/python/ambari_server/BackupRestore.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/python/ambari_server/BackupRestore.py 
b/ambari-server/src/main/python/ambari_server/BackupRestore.py
index 2c00be9..d418b7d 100644
--- a/ambari-server/src/main/python/ambari_server/BackupRestore.py
+++ b/ambari-server/src/main/python/ambari_server/BackupRestore.py
@@ -58,7 +58,8 @@ class BackupRestore:
     """
     try:
       print("Creating zip file...")
-      zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w')
+      # Use allowZip64=True to allow sizes greater than 4GB
+      zipf = zipfile.ZipFile(self.zip_folder_path + self.zipname, 'w', 
allowZip64=True)
       zipdir(zipf, self.state_file_list, self.zipname)
     except Exception, e:
       sys.exit("Could not create zip file. Details: " + str(e))

Reply via email to