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

Temporary files are not deleted after loading and rendering a pie chart

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 7.2.7, 7.2.13
    • Data Center - Other

    Description

      Summary

      Loading a Confluence page which has 20 or more pie chart gadgets and that is connected to a busy JIRA instance leads to failing to load some of those gadgets with the errors shown below.

      JIRA does not find the temporary file created in JIRA_DATACENTER_SHARED_FOLDER\caches\charts and returns the error "File not found" to Confluence, however the temporary file is later created and not deleted as the operation trying to load the file had completed before.

      Please note there is a different problem with similar symptoms - JRASERVER-72881

      Confluence page error

      JIRA log error

      2018-02-02 04:37:54,779 http-nio-80-exec-36 WARN anonymous 277x91142x3 - 10.25.192.102,10.25.192.13 /charts [c.a.j.charts.jfreechart.DisplayChartServlet] File not found, returning 404 (filename='jfreechart-onetime-83880084426271604.png').
      

      Environment

      • JIRA Data Center
        (It was reproduced in JIRA Software 7.2.7 and 7.2.13)
      • Confluence
        (It was reproduced in Confluence 5.10.8)

      Steps to Reproduce

      1. Create a Confluence page with many pie chart gadgets (at least 20)
      2. Connect the Confluence instance to the JIRA instance
        It is important to note that the load in the JIRA instance has to be high in order to reproduce the issue.
      3. Load the Confluence page (which will request JIRA to generate the temporary images to show the pie chart)

      Expected Results

      1. JIRA will return all the charts requested by loading the data needed and creating a temporary file for each gadget that in the end is the chart returned to Confluence.
      2. Once the temporary files are used they should be deleted from the JIRA DC shared folder.

      Actual Results

      • When loading the Confluence page some of the gadgets are not loading and the below error is shown.

      *For those temporary files that are not shown in the Confluence page the below error is shown in the JIRA log files.

      2018-02-02 04:37:54,779 http-nio-80-exec-36 WARN anonymous 277x91142x3 - 10.25.192.102,10.25.192.13 /charts [c.a.j.charts.jfreechart.DisplayChartServlet] File not found, returning 404 (filename='jfreechart-onetime-83880084426271604.png').
      
      • The same file that is shown as file not found in the JIRA log file is later created in the JIRA shared folder and not deleted. (See highlighted examples below).

      Workaround

      It is possible to delete these files left in the JIRA Data Center shared folder/directory as they should be deleted once the image is rendered.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ecasuscelli Esteban Casuscelli
              Votes:
              28 Vote for this issue
              Watchers:
              46 Start watching this issue

              Dates

                Created:
                Updated: