diff --git a/modules/dcache-webdav/src/main/java/org/dcache/webdav/DcacheResourceFactory.java b/modules/dcache-webdav/src/main/java/org/dcache/webdav/DcacheResourceFactory.java index 78bebe378f0..c9f966f38ad 100644 --- a/modules/dcache-webdav/src/main/java/org/dcache/webdav/DcacheResourceFactory.java +++ b/modules/dcache-webdav/src/main/java/org/dcache/webdav/DcacheResourceFactory.java @@ -632,27 +632,8 @@ public DcacheResource getResource(FsPath path) { PnfsHandler pnfs = roleAwarePnfsHandler(); Set requestedAttributes = buildRequestedAttributes(); - FileAttributes attributes; - - // FIXME: work around race condition between http mover completion and HEAD request by FTS - // See: https://rt.dcache.org/Ticket/Display.html?id=10510 - int retry = 10; - do { - attributes = pnfs.getFileAttributes(path.toString(), requestedAttributes); - if (!requestedAttributes.contains(CHECKSUM) || - (attributes.isDefined(CHECKSUM) && !attributes.getChecksums().isEmpty())) { - break; - } - LOGGER.debug("The checksum attribute is not available yet. Waiting ... ({} attempts left)", retry); - retry--; - try { - MILLISECONDS.sleep(500); - } catch (InterruptedException e) { - // Probably shutdown... - break; - } - } while (retry > 0); - + FileAttributes attributes = + pnfs.getFileAttributes(path.toString(), requestedAttributes); return getResource(path, attributes); } catch (FileNotFoundCacheException e) { if (haveRetried) {