-
Bug
-
Resolution: Fixed
-
High (View bug fix roadmap)
-
4.4.2
-
None
-
4.04
-
A temporary workaround to mitigate risk is detailed below. Please remember to backup your instance prior to making any changes to your system.
There were somehow two issues with the issue key JSP-93880 created on SAC. The issue key could not be accessed through the web interface, the error was understandably about expecting one value and getting multiples:
@400000004e92f2300f44b2f4 2011-10-10 08:24:54,255 http-172.16.3.44-8080-52 ERROR [500ErrorPage.jsp] Exception caught in 5 00 page Passed List had more than one value. @400000004e92f2300f44bac4 java.lang.IllegalArgumentException: Passed List had more than one value. @400000004e92f2300f44beac at org.ofbiz.core.entity.EntityUtil.getOnly(EntityUtil.java:62) @400000004e92f2300f44beac at com.atlassian.jira.issue.managers.DefaultIssueManager.getIssue(De
One of the two issues was a duplicate of JSP-93382. I removed the database entry for that issue, which restored access to the issue through the web interface.
Searching for the deleted issue's description, as in "convert internal directory to LDAP" still returns two issues, JSP-93382 and JSP-93380. The entry in that search for JSP-93380 has the wrong summary, but clicking the link goes to the sole remaining issue. I suspect a full reindex will be required to make that bogus entry go away.
To track this down further, I would propose adding a constraint to disallow duplicate pkey values, as in:
alter table jiraissue add constraint pkey_unique unique (pkey);
Once that's in place, a database error will thrown whenever an attempt is made to create a second record with the same pkey. Looking at previous examples of other problems, I'd expect something like org.postgresql.util.PSQLException in our case.
The issues were not created from support requests, nor were they created from mail messages. I suspect that someone it's possible for two threads to end up with the same new pkey.
This is happening about once a week at this point, so it's not an isolated incident. I don't see anything telling in the logs immediately before the original error, any ideas about tracking this down would be appreciated.
- causes
-
JRASERVER-26133 Project Import fails with error: "Existing issue found for key"
-
- Closed
-
- is caused by
-
JRASERVER-25708 JIRA freezes creating issues
-
- Closed
-
- is duplicated by
-
JRASERVER-25708 JIRA freezes creating issues
-
- Closed
-
-
JRASERVER-25945 Concurrent creates get same issue key
-
- Closed
-
- is related to
-
JRASERVER-34376 Issues not committed to database (and cannot be fetched) at time of event dispatch for issues created from post function
-
- Gathering Impact
-
- mentioned in
-
Page Loading...
-
Page Loading...
-
Wiki Page Loading...
-
Wiki Page Loading...
-
Wiki Page Loading...
@Nancy - Thanks for bringing this to our attention. I believe you've been in contact with support and they've helped you with the workaround described earlier in this issue.
What you experienced with JIRA 4.4.3 is actually a slightly different issue, but has the same effect as this original issue so it appears to be the same): JRA-26172.
For everyone else's benefit, this occurs when creating issues inside of a transition or an issue update. This would only occur in custom plugins which are creating issues inside of JIRA post-functions, listeners, etc., so it's much more rare than the original issue (where the issue could occur with any high load of issues created in parallel)
We're investigating a fix for a future JIRA bug fix release.
One of our developers will also be posting a workaround for plugin developers, so plugin developers can avoid the possibility of this conflict occurring in the meantime.