ArielGlenn has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/327716 )

Change subject: don't treat missing output files as truncated
......................................................................

don't treat missing output files as truncated

this allows reruns of checkpoint files to complete properly,
when the file being written has not yet been moved into place
though it is in the list of output files

Change-Id: Ia444051857b3073b1f0e60e75250aa80651207b7
---
M xmldumps-backup/dumps/jobs.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/dumps 
refs/changes/16/327716/1

diff --git a/xmldumps-backup/dumps/jobs.py b/xmldumps-backup/dumps/jobs.py
index 9211509..b07ebad 100644
--- a/xmldumps-backup/dumps/jobs.py
+++ b/xmldumps-backup/dumps/jobs.py
@@ -195,6 +195,9 @@
                     # The file exists and is not truncated. Heck, it's a good 
file!
                     file_truncated = False
 
+            else:
+                # file doesn't exist, move on
+                file_truncated = False
             if file_truncated:
                 ret += 1
 

-- 
To view, visit https://gerrit.wikimedia.org/r/327716
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia444051857b3073b1f0e60e75250aa80651207b7
Gerrit-PatchSet: 1
Gerrit-Project: operations/dumps
Gerrit-Branch: master
Gerrit-Owner: ArielGlenn <ar...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to