Error in logs when updating a Field value using SIL (Live Field)

salman_kagzi August 17, 2014

Hey Folk,

I am using JJUPIN to do a lot of stuff in our Jira setup. I have some scripts that execute when an Issue is openened (i.e. Viewed) to calculate its value and display. From one of the script that is supposed to sum Work Log for all linked task and update an Interval Field I see following error message in the log files.

The number of such messages were less initially and now have incresed quite a lot and the performance of Jira has also taken a Hit. I assume the root case of both is something related to below message.

http-bio-8080-exec-104 ERROR xxx xxxxx xxx.xxx.xxx.xxx /rest/keplerrominfo/jjupin/latest/lf/initPage [issue.customfields.impl.AbstractSingleFieldType] More than one value stored for custom field id 'customfield_12821' for issue 'ITEM-55'. Values [1008000.0, 1008000.0, 1008000.0, 1008000.0, 1008000.0, 1008000.0]

Field customfield_12821 is a Interval Type field which is updated using SIL when a issue is opened (or viewed).

Some digging on this error took me to https://jira.atlassian.com/browse/JRA-12796

Is SIL getting affected by this? Is there a work around or a fix available for this. We are using Jira 6.1.2 and upgrading to 6.2 is not going to be easy for us.

2 answers

1 accepted

0 votes
Answer accepted
FlorinM
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 17, 2014

Hi Salman,

Yes, SIL is affected by that issue. You should be able to fix the errors by running an integrity check, but it will not prevent them from happening again. The proper way to fix is to upgrade JIRA to 6.2.

0 votes
Alexey_Rjeutski__Polontech_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 17, 2014

As the plugin uses some JIRA API to update field during view - there is high probability of concurent update when 2 users view at the same time - so plugin is affected by this issue. The most proper way to solve it - is to upgrade. If that doesn't work for you - as a workaround you can write a service that will execute the updates that are proposed inside the ticket you've listed (you can use script runner service) and fix duplicated entries.

Please note that your jira version is security vulnerable https://confluence.atlassian.com/display/JIRA/JIRA+Security+Advisory+2014-02-26 - so it is highly recommended to upgrade or at least implement the patch

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events