Rolling Upgrade "Tasks Running" shows a high value when instance is idle

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 8.2.0, 7.19.6, 7.19.7
    • Component/s: Data Center - Core
    • None
    • 2
    • Severity 3 - Minor
    • 0

      Issue Summary

      On the Confluence Administration » General Configuration » Rolling upgrades, the "Tasks running" value shows a high count.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Move a page which results in failure

      Expected Results

      1. Confluence Administration » General Configuration » Rolling upgrades should show 0 "Tasks running" after the page move fails

      Actual Results

      1. Confluence Administration » General Configuration » Rolling upgrades » "Tasks running" count value increments and does not reduce.

      Checking <Confluence-BaseURL>/rest/api/longtask shows the list of long running tasks with this being the "failed task"

      {
      	"results": [
      		{
      			"id": "2e9b11ab-e2b8-41a6-9af0-81e58e7425a2",
      			"name": {
      				"translation": "Move Page",
      				"args": []
      			},
      			"elapsedTime": 6544,
      			"percentageComplete": 0,
      			"successful": false,
      			"messages": [
      				{
      					"translation": "Page move failed.",
      					"args": []
      				}
      			]
      		}
      	],
      	"start": 0,
      	"limit": 100,
      	"size": 1,
      	"_links": {
      		"self": "http://localhost:8090/rest/api/longtask",
      		"base": "http://localhost:8090",
      		"context": "/"
      	}
      }
      

      Manually inspecting Thread Dumps shows no actual long running threads

      Over time, the "Tasks running" will keep increasing on each failed long running task operation despite the long running task is not running when inspecting Thread Dumps

      Workaround

      • Restarting Confluence will reset the Rolling upgrades » "Tasks running" count value.
      • However, a high "Tasks running" count value may not indicate high running tasks, check Support Zip with Thread Dumps captured for any long running threads

      No action recommended as this bug is in the calculation of the "Tasks running" and not indicative of a high load inside Confluence/Tomcat.

        1. ZDU.png
          133 kB
          Eric L

            Assignee:
            Unassigned
            Reporter:
            Eric L
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: