-
Notifications
You must be signed in to change notification settings - Fork 7
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
Reached link limit when downloading a large amount of bundles (140000+) #427
Comments
I did a quick fix at... dcp-cli/hca/dss/util/__init__.py Lines 56 to 60 in 8322457
...where if an EMLINK exception is thrown, the source file is copied to the link's location instead being linked. This is implemented using the snippet below. try:
os.link(source, link_name)
except OS Error as e:
if e.errno == errno.EMLINK:
shutil.copyfile(source, link_name)
elif e.errno != errno.EEXIST:
raise While this fix allowed me a large number download files, it was only tested in Ubuntu with Python 3.7 and doesn't completely resolve this issue. |
@hannes-ucsc and I have discussed designs for this, but have not reached a final agreement (a prerequisite to finishing this ticket). |
We should implement the quick fix plus logging. If additional improvements can implemented on top of that, we should file separate tickets. |
The text was updated successfully, but these errors were encountered: