[ https://issues.apache.org/jira/browse/KNOX-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888720#comment-17888720 ]
ASF subversion and git services commented on KNOX-3069: ------------------------------------------------------- Commit 9b34e27d76b1f79b0c2039384edf97bfb32e01c9 in knox's branch refs/heads/master from Larry McCay [ https://gitbox.apache.org/repos/asf?p=knox.git;h=9b34e27d7 ] KNOX-3069 - Fix Flakey Test - TokenServiceResourceTest (#938) > 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)