Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions consistency_check/consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ def compare_checksum(
# Make a single DF with both info, and only keep pfn in both
joined = pd.concat([fc_dump, se_dump], axis=1)
joined = joined[joined.index.isin(in_both)]
if joined.empty:
raise ValueError("Could not join properly, is something wrong with the files format ?")

# Filter on non matching checksum
non_matching = joined.loc[joined["fc_cks"] != joined["se_cks"]][["seName", "lfn", "fc_cks", "se_cks"]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
# Date: 2013/03/25 07:44:19
########################################################################

""" :mod: RemoveFile
""":mod: RemoveFile

================
================

.. module: RemoveFile
.. module: RemoveFile

:synopsis: removeFile operation handler
:synopsis: removeFile operation handler

.. moduleauthor:: Krzysztof.Ciba@NOSPAMgmail.com
.. moduleauthor:: Krzysztof.Ciba@NOSPAMgmail.com

removeFile operation handler
removeFile operation handler
"""
# #
# @file RemoveFile.py
Expand Down Expand Up @@ -132,6 +132,7 @@ def __call__(self):
self.rmsMonitoringReporter.addRecord(
self.createRMSRecord("Successful", len(toRemoveDict) - len(bulkRemoval["Value"]))
)
toRemoveDict = bulkRemoval["Value"]

# # 2nd step - single file removal
for lfn, opFile in toRemoveDict.items():
Expand Down
Loading