[
https://issues.apache.org/jira/browse/KNOX-3069?focusedWorklogId=937651&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-937651
]
ASF GitHub Bot logged work on KNOX-3069:
----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Oct/24 17:17
Start Date: 11/Oct/24 17:17
Worklog Time Spent: 10m
Work Description: lmccay merged PR #938:
URL: https://github.com/apache/knox/pull/938
Issue Time Tracking
-------------------
Worklog Id: (was: 937651)
Time Spent: 20m (was: 10m)
> Flakey Test - TokenServiceResourceTest
> --------------------------------------
>
> Key: KNOX-3069
> URL: https://issues.apache.org/jira/browse/KNOX-3069
> Project: Apache Knox
> Issue Type: Bug
> Components: JWT
> Reporter: Larry McCay
> Priority: Minor
> Time Spent: 20m
> Remaining Estimate: 0h
>
> TokenServiceResourceTest - testLimitingTokensPerUser method acquires many
> tokens within a tight for loop and does not insure that the tokenIds are
> unique.
> This results in test failures for the unlimited tokens per user on certain
> machines.
> This may also point to a larger concurrency problem which needs
> investigation. Will file a separate JIRA for this. This may be an issue with
> the test or the UUID use for the tokenID in general. In the meantime, we
> can't have builds failing on certain machines.
> This change interrogates the response and adds an assertion to ensure that
> the tokenId is unique. It seems the time spent in doing the check "fixes" the
> failures. The same "fix" was accomplished with a sleep of 1ms between token
> acquisitions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)