[ http://issues.apache.org/jira/browse/SANDBOX-71?page=comments#action_12419325 ]
Joerg Schaible commented on SANDBOX-71: --------------------------------------- Hi Martin, thanks for the comment, but the link is no longer valid. If you have the document still, can you attach it here? In fact the TimeBasedAIG will be infected by back shifts in time. Since the clock of my machine at home also is aggressivly synchronized, the implementation is meanwhile quite robust, but especially if sudden time corrections appear, the impl will throw an exception, since it can no longer guarantee unique IDs. It will work though, if a time synchronization daemon runs that adjust the time smoothly (even back shifts). > [id] Sporadic test failures in TimeBasesAlphanumericIdentifierGeneratorTest > --------------------------------------------------------------------------- > > Key: SANDBOX-71 > URL: http://issues.apache.org/jira/browse/SANDBOX-71 > Project: Commons Sandbox > Type: Bug > Components: Id > Environment: Operating System: other > Platform: All > Reporter: Joerg Schaible > Assignee: Joerg Schaible > Attachments: TimeBasedAIGTest.patch > > The unit tests for TimeBasesAlphanumericIdentifierGenerator fail with Gump > sometimes for unknown reason. Unfortunately it seems, that the exactly test > reports are unavailable. Nevertheless I suspect timing problems that interfere > and may fail running the fixtures of the test within the same time slice. > Therefore was in setUp() a sleep(50) call that might fail to create a unique > operation environment for each test fixture depending on the OS/hardware > environment. This "synchronization" has been replaced with an explicit loop > waiting for the next time slice. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
