Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370729

Summary: [Operations] Task Id not unique when started in the same time
Product: [ECD] Orion Reporter: Malgorzata Janczarska <malgorzata.tomczyk>
Component: ServerAssignee: Malgorzata Janczarska <malgorzata.tomczyk>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Szymon.Brandys, tomasz.zarna
Version: 0.4   
Target Milestone: 0.4 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Malgorzata Janczarska CLA 2012-02-06 09:56:25 EST
May be connected with Bug 370722. When loading git-repositoriey page task that gets tags is first checked twice after it finishes. Then its deleted twice. The task response is in attachment 210584 [details].
Comment 1 Malgorzata Janczarska CLA 2012-02-07 10:30:08 EST
*** Bug 370722 has been marked as a duplicate of this bug. ***
Comment 2 Tomasz Zarna CLA 2012-02-07 12:08:36 EST
Gosia told me this the right bugzilla to report this:
I'm fixing bug 369709. When opening Repositories >> mark repo page (repo from Mark's attachment) for the first time I see a tag ie "v2012..." in Branches section. This happens only when opening the page for the first time.
Comment 3 Malgorzata Janczarska CLA 2012-02-10 10:02:42 EST
I found the problem. The UniversalUniqueIdentifier was not thread safe. It had some mechanism to prevent creating the same identifiers if the attempt to create them came in the same millisecond, but still the function that did this was relying on some static fields that needed to be synchronized.
This could result not only in the same task ids, but when we had a lot of users we could get duplicated locations of projects, user ids etc.
Comment 4 Malgorzata Janczarska CLA 2012-02-10 10:14:23 EST
fixed