Integrated: 1295: CSRBot throws intermittent exception when looking up JiraIssue links

Erik Joelsson erikj at openjdk.java.net
Thu Jan 6 23:03:09 UTC 2022


On Thu, 23 Dec 2021 22:23:23 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> This patch adds another retry condition for rest requests. When a rest call uses authentication but fails with 401 "unauthorized", we need to give it at least one more try. The authentication mechanism for JBS works with time limited tokens that sometimes need to be renewed. This can only be detected through failing with 401. On the retry, the dynamic authorization provider (authGen.getAuthHeaders()) will get to run again and will detect the stale token.
> 
> I'm currently running with this patch live for the affected bot and so far it's looking good, but I will leave it running a while more to make sure.

This pull request has now been integrated.

Changeset: 6a7ae943
Author:    Erik Joelsson <erikj at openjdk.org>
URL:       https://git.openjdk.java.net/skara/commit/6a7ae9436fa21757f11ff84e44ddfd4b778520be
Stats:     37 lines in 2 files changed: 32 ins; 3 del; 2 mod

1295: CSRBot throws intermittent exception when looking up JiraIssue links

Reviewed-by: kcr

-------------

PR: https://git.openjdk.java.net/skara/pull/1268


More information about the skara-dev mailing list