You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/03/18 00:03:00 UTC

[jira] [Commented] (NIFI-9801) AccessToken isExpired fixed incorrectly

    [ https://issues.apache.org/jira/browse/NIFI-9801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508474#comment-17508474 ] 

ASF subversion and git services commented on NIFI-9801:
-------------------------------------------------------

Commit fc30b649cccbbecaf8b861def94b6a3a75e532ea in nifi's branch refs/heads/main from Tamas Palfy
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=fc30b64 ]

NIFI-9801 Fixed error in previous correction of AccessToken.isExpired() margin calculation
NIFI-9801 Stabilized shaky AccessTokenTest.

This closes #5872

Signed-off-by: Mike Thomsen <mt...@apache.org>


> AccessToken isExpired fixed incorrectly
> ---------------------------------------
>
>                 Key: NIFI-9801
>                 URL: https://issues.apache.org/jira/browse/NIFI-9801
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Tamas Palfy
>            Assignee: Tamas Palfy
>            Priority: Minor
>             Fix For: 1.16.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Fix for https://issues.apache.org/jira/browse/NIFI-9797 made possible to consider a token valid while expired.
> The idea behind the margin is to renew the ticket way before the last possible second. To leave us some room - a margin of error so to speak.
> The aforementioned fix adds 5 extra seconds when we consider the ticket not expired - even when it has.
> In case of a busy processor this can lead to an unnecessary failure.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)