Skip to content

Retry OneFS API calls on AEC_SERVICE_UNAVAILABLE (503) - #119

Open
amtgrv wants to merge 1 commit into
Isilon:mainfrom
amtgrv:main
Open

Retry OneFS API calls on AEC_SERVICE_UNAVAILABLE (503)#119
amtgrv wants to merge 1 commit into
Isilon:mainfrom
amtgrv:main

Conversation

@amtgrv

@amtgrv amtgrv commented Jul 20, 2026

Copy link
Copy Markdown

The accesses_onefs decorator only retried on the exact "Try your request again." message. When PAPI returns a 503 AEC_SERVICE_UNAVAILABLE ("The limit for simultaneous requests has been reached."), the error was raised immediately, which caused transient chai test fixture-setup failures during bursts of concurrent PAPI requests.

This issue is specially evident after PAPI team introduced rate limits to all the PAPI requests.

The fix treats AEC_SERVICE_UNAVAILABLE as a retriable condition, and replaces the previous unbounded, fixed-2s retry loop with bounded retries using exponential backoff and jitter.

Comment thread src/isilon_hadoop_tools/onefs.py
Comment thread src/isilon_hadoop_tools/onefs.py Outdated
The accesses_onefs decorator only retried on the exact
"Try your request again." message. When PAPI returns a 503
AEC_SERVICE_UNAVAILABLE ("The limit for simultaneous requests
has been reached."), the error was raised immediately, which
caused transient chai test fixture-setup failures during bursts
of concurrent PAPI requests.

This issue is specially evident after PAPI team introduced rate limits
to all the PAPI requests.

The fix treats AEC_SERVICE_UNAVAILABLE as a retriable condition, and
replaces the previous unbounded, fixed-2s retry loop with bounded
retries using exponential backoff and jitter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants