Skip to content

Commit

Permalink
Do not duplicate error messages in DBS3Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
amaltaro committed Jan 18, 2023
1 parent a558fc3 commit 45bee53
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/python/WMComponent/DBS3Buffer/DBSUploadPoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def uploadWorker(workInput, results, dbsUrl, gzipEncoding=False):
if srvCode == 128:
# block already exist
logging.warning("Block %s already exists. Marking it as uploaded.", name)
results.put({'name': name, 'success': "uploaded"})
results.put({'name': name, 'success': "check"})
elif srvCode in [132, 133, 134, 135, 136, 137, 138, 139, 140]:
# racing conditions
logging.warning("Hit a transient data race condition injecting block %s, %s", name, msg)
Expand Down Expand Up @@ -766,11 +766,6 @@ def retrieveBlocks(self):
elif result["success"] == "check":
block = result["name"]
self.blocksToCheck.append(block)
else:
logging.error("Error found in multiprocess during process of block %s", result.get('name'))
logging.error(result['error'])
# Continue to the next block
# Block will remain in pending status until it is transferred

if loadedBlocks:
try:
Expand Down

0 comments on commit 45bee53

Please sign in to comment.