Skip to content

Commit

Permalink
Added error check and transfer job reassignment after repeat of dir q…
Browse files Browse the repository at this point in the history
…uery
  • Loading branch information
Emma Turetsky authored and Emma Turetsky committed Sep 19, 2024
1 parent 56368db commit c94fc33
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/handle_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,13 @@ func (tc *TransferClient) NewTransferJob(ctx context.Context, remoteUrl *url.URL
// The director response may change if it's given a token; let's repeat the query.
if contents != "" {
dirResp, err = GetDirectorInfoForPath(tj.ctx, remoteUrl.Path, pelicanURL.directorUrl, upload, remoteUrl.RawQuery, contents)
if err != nil {
log.Errorln(err)
err = errors.Wrapf(err, "failed to get namespace information for remote URL %s", remoteUrl.String())
return nil, err
}
tj.dirResp = dirResp
tj.token.DirResp = &dirResp
}
}

Expand Down

0 comments on commit c94fc33

Please sign in to comment.