Skip to content

Commit

Permalink
doors: Do not log failure to delete absent files on upload failures:
Browse files Browse the repository at this point in the history
Motivation:

15 Oct 2015 14:16:34 (Xrootd-srm-alice-ipv4) [door:Xrootd-srm-alice-ipv4:AAUiIzoywfA] Failed to delete file after failed upload: /pnfs/ndgf.org/data/alice/T1D0/05/02269/393238a0-6f65-11e5-9717-0b39a10abeef (0000514BCE681C4D4BCEAFEF7B58FD08F5A4): Pnfsid does not correspond to provided file

Modification:

Lowers log level to debug.

Result:

Less noise in the logs.

Target: trunk
Require-notes: yes
Require-book: no
Request: 2.13
Request: 2.12
Request: 2.11
Request: 2.10
Acked-by: Femi Adeyemi <olufemi.segun.adeyemi@desy.de>
Acked-by: Paul Millar <paul.millar@desy.de>
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: https://rb.dcache.org/r/8658/
  • Loading branch information
gbehrmann committed Oct 16, 2015
1 parent 79a3ce7 commit 49fcd3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dcache/src/main/java/org/dcache/util/Transfer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,9 @@ public void deleteNameSpaceEntry()
setStatus("PnfsManager: Deleting name space entry");
try {
_pnfs.deletePnfsEntry(pnfsId, _path.toString());
} catch (FileNotFoundCacheException e) {
_log.debug("Failed to delete file after failed upload: " +
_path + " (" + pnfsId + "): " + e.getMessage());
} catch (CacheException e) {
_log.error("Failed to delete file after failed upload: " +
_path + " (" + pnfsId + "): " + e.getMessage());
Expand Down

0 comments on commit 49fcd3e

Please sign in to comment.