Skip to content

cadc-util: tweak error handling#288

Merged
pdowler merged 3 commits into
opencadc:mainfrom
pdowler:main
Jun 17, 2026
Merged

cadc-util: tweak error handling#288
pdowler merged 3 commits into
opencadc:mainfrom
pdowler:main

Conversation

@pdowler

@pdowler pdowler commented Jun 16, 2026

Copy link
Copy Markdown
Member

add PermissionDeniedException to replace deprecated AccessControlException

pdowler added 3 commits June 16, 2026 14:29
add PermissionDeniedException to replace deprecated AccessControlException
timeoutRetryDelay = Math.max(connectionTimeout, readTimeout) / 1000; // ms to sec
}
throw new TransientException("connection/read timeout: " + url, ex, timeoutRetryDelay);
throw new TransientException("url=" + toLoggableString(url) + " connection/read timeout");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not subject to the same retry rules like the other Transient exceptions?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it turned out that computing the retry-after from the timeout values made for very long retry loops (because the timeouts can't be that short)... and this is client-side error handling so shouldn't guess at retry-after times... just use the default 1, 2, 4, ... seconds

@pdowler pdowler merged commit d7e2dd2 into opencadc:main Jun 17, 2026
1 check passed
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