Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-22110

Jira issue creation increments issue key counter even if creation fails (producing big gap in issue numbering)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Medium
    • None
    • 4.1.2
    • Issue - Create Issue
    • Jira tomcat + mySql

    Description

      Hello,
      following the support request JSP-63263 it seems that the issue key is incremented even if the issue creation fails, this may produce big gaps in issue numbering. I reccomend to increment issue key only when issue creation is succeful.

      How this may happen (according to what experienced in JSP-63263)
      -We have jira configured with create or comment mail handler and "forwardTo" correctly set.
      -At a point we had the smtp server down during three days, so no outgoing mail from Jira.
      -During these period we have recived (at least) one incoming email producing an error at the issue creation time (related to a mySql DB ecoding issue)
      -in this case normally Jira pops the email from the mailbox and sends a "EMAIL HANDLER: Error handling:" notification
      -it seems that being impossible to send the notification (smtp down) jira leaves the incoming email in the mailbox and therefore it tries again one minute after to create the issue, incrementing each time the issue key (I suppose this because if you look at the main gap in JSP-63263 (MMSHD-5757 vs. MMSHD-632) you have ( 5757-632=5125 ) / 1440 (minutes per day) = 3.5 days. That is exactly the duration of the smtp sever downtime.)

      this is very annoyng because for the final user the impression is that the number of issues has explosed and the system is unstable

      I reccomend to increment issue key only when issue creation is succeful.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              c234bc3c790a Damiano Migliori
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: