Retry transient connection errors on idempotent iRODS reads#23171
Open
pauldg wants to merge 4 commits into
Open
Retry transient connection errors on idempotent iRODS reads#23171pauldg wants to merge 4 commits into
pauldg wants to merge 4 commits into
Conversation
pauldg
force-pushed
the
fix/irods-objectstore-retry-on-network-exception
branch
from
July 24, 2026 12:19
b217d7e to
2b73a20
Compare
mypy no-implicit-reexport rejects importing them via galaxy.objectstore.irods.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The iRODS object store's idempotent read operations (
_exists_remotely,_get_remote_size,_download) don't retry on potentially transient connection errors and fails the job. In my set up these show up asNetworkException(from an idle pooled connection reset by a firewall/proxy) andssl.SSLError(a dropped TLS handshake on a fresh connection); both of these resolve on a new connection.This PR is a small decorator that retries a set number of times with a short backoff. Writes, deletes, not found (
DataObjectDoesNotExist/CollectionDoesNotExist) are left untouched.Transient errors like these are unavoidable on networked storage. The S3 backends already have a similar mechanism:
num_download_attemptsparam:galaxy/lib/galaxy/objectstore/s3_boto3.py
Line 180 in 1e9cd1d
galaxy/lib/galaxy/objectstore/s3.py
Lines 251 to 273 in 1e9cd1d
For the
python-irodsclientthere is no equivalent, I'll also submit an issue and/or PR to thepython-irodsclientcodebase to handle it there too.Unit tests cover: recover-on-
NetworkException, recover-on-ssl.SSLError, give-up after the max attempts, and no retry on success.How to test the changes?
License