-
Bug
-
Resolution: Fixed
-
Low
-
7.6.0, 7.6.3, 7.8.2, 7.6.6, 7.13.1
-
7.06
-
12
-
Severity 2 - Major
-
83
-
Summary
<JIRA>/status returns ERROR during full re-indexing (foreground reindexing).
This makes a host that is doing a full re-index is indistinguishable from a host that is not healthy (i.e. not live) and needs restarting.
Steps to Reproduce
- Start 'Lock JIRA and rebuild index' (make sure you have enough issues to reindex)
- Trigger call to <JIRA>/status
Expected Results
HTTP code: 200
Body:
{"state":"MAINTENANCE"}
Actual Results
HTTP code: 500 or 503
Body:
{"state":"ERROR"}
Notes
- Same "ERROR" status was not reproducible in earlier Jira version like Jira v7.2.12
- Background reindex returns "RUNNING" status
Workaround
None
Note on fix
The behaviour of this endpoint in versions of Jira containing this fix is (from comment below):
- No Johnson event, or a Johnson event which doesn't prevent startup: 200, "STARTING"/"FIRST_RUN"/"RUNNING"
- Startup is delayed by a reIndexing event, and nothing else: 503, "MAINTENANCE"
- Startup is prevented by a different Johnson event: 500, "ERROR"
- causes
-
JRASERVER-47045 When a re-indexing node is abruptly stopped indexing still shows as in progress on other nodes, preventing future reindexing
- Closed
- is related to
-
JRASERVER-59503 /status should return running and not starting when JDC node is already started up
- Closed
-
JRASERVER-62927 If JIRA has errors during startup, ApplicationStatusServlet doesn't show JIRA state properly and remains stuck in {"state":"STARTING"}
- Gathering Impact
-
JRASERVER-65708 /status returns Maintenance instead of Running when nodes are not in Maintenance mode and the Database is configured with an unsupported collation
- Long Term Backlog
- relates to
-
JRASERVER-67135 JIRA Data Center node appear as Active when shutdown ungracefully
- Closed
-
JRASERVER-66970 /status should indicate when indexes are broken on a node
- Closed
-
JRASERVER-63928 Document the /status URL for JIRA
- Gathering Interest
-
JRASERVER-64269 As an JIRA Administrator I want JIRA datacenter health-check to change status code
- Gathering Interest