Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-33394: Add debug log message if the cache transfer failed #641

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/lsst/daf/butler/core/datastoreCacheManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,8 @@ def find_in_cache(self, ref: DatasetRef, extension: str) -> Iterator[Optional[Re
try:
if temp_location is not None:
temp_location.transfer_from(cached_location, transfer="hardlink")
except Exception:
except Exception as e:
log.debug("Detected error creating hardlink for dataset %s: %s", ref, e)
# Any failure will be treated as if the file was not
# in the cache. Yielding the original cache location
# is too dangerous.
Expand Down