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

Fail for unknown namespace. #75

Merged
merged 2 commits into from
Jun 5, 2023

Conversation

bbockelm
Copy link

@bbockelm bbockelm commented Jun 3, 2023

If a prefix is not in a registered namespace, instead of effectively falling back to a default set of caches, return a failure.

This is meant to provide reasonable error messages when there are typos in the URL instead of making it look like there's an issue with the caches.

Here's an example output from stashcp:

stashcp osdf://typo/staging/bbockelm/foo /dev/null
ERROR[2023-06-03T10:58:53-05:00] Failure downloading osdf://typo/staging/bbockelm/foo: Attempt #1: OSDF namespace not known for path /typo/staging/bbockelm/foo (100ms since start)

bbockelm and others added 2 commits June 3, 2023 11:00
If a prefix is not in a registered namespace, instead of effectively
falling back to a default set of caches, return a failure.

This is meant to provide reasonable error messages when there are
typos in the URL instead of making it look like there's an issue with
the caches.

Here's an example output from `stashcp`:

```
stashcp osdf://typo/staging/bbockelm/foo /dev/null
ERROR[2023-06-03T10:58:53-05:00] Failure downloading osdf://typo/staging/bbockelm/foo: Attempt htcondor#1: OSDF namespace not known for path /typo/staging/bbockelm/foo (100ms since start)
```
@djw8605 djw8605 merged commit 3d1ebbd into htcondor:main Jun 5, 2023
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