Duplicate IDs

Mark K. Plueckhahn, modified 12 Years ago.

Duplicate IDs

Youngling Post: 1 Join Date: 7/13/11 Recent Posts
While working with a colleague in the same project, each of us is creating new test cases.
If both of us hit the button "Neu" to create a new testcase work on these testcases and save them in the end,
both testcases get the same (unchangeable) ID.
Please see attachment.

Now if browsing through the testcases with "Voriger Testfall" / "Nächster Testfall" only one of these entries with duplicate IDs is reachable.

Using Community Edition 3.4.2 - Build 1101 (2011-05-27 16:55:27) on a Postgres Database.
thumbnail
Torsten Stolpmann, modified 12 Years ago.

RE: Duplicate IDs

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Mark,

our current analysis shows that there is indeed a race condition leading to this bug, thanks a lot for pointing this out.

I tracked this as KLAROS-1345 (Duplicate IDs are generated when saving new test cases simultaneously in different sessions). This behavior will show when two save requests for newly created objects are overlapping.

The fact that one of the test cases is not shown when browsing through the test cases is due to the application regarding the second one a revision of the former test case. Your database is still consistent (IDs are not used as database keys), but I would advise duplicating and deleting one of the conflicting test cases until this issue has been resolved.

Thanks again for your feedback,

Torsten