-
Bug
-
Resolution: Fixed
-
Low
-
8.0.0, 8.1.0, 8.2.1, 8.4.0, 8.3.0, 8.5.0, 8.5.1, 8.5.2, 8.6.0, 8.7.0, 8.8.0, 8.9.0, 8.10.0, 8.11.0, 8.12.0
-
8
-
6
-
Severity 3 - Minor
-
1
-
Issue Summary
The Lucene statistics for the type of directory RAMDirectory are written to the Jira log files as INFO level when this type of directory is flushed, which generates additional logging for an event that is not expected to be logged at INFO level.
It was found in the logs files analyzed (please note that this can vary for each deployment) that 25% of the Lucene statistics generated belonged to the flushing of RAMDirectory.
It is important to note that for any other type of index this log provides valuable statistics which could be use to proactively identify possible index performance degradation.
Steps to Reproduce
There are not steps to reproduce the issue.
Expected Results
Flushing an IndexWriter of a RAMDirectory should not be logged as INFO log level, however it could be considered as TRACE log level instead.
Actual Results
The below log lines appear very often in the Jira log files.
2019-11-12 15:40:17,805 catalina-exec-349 INFO anonymous 940x4070627x10 - [IP Address Sanitized],[IP Address Sanitized] /rest/api/latest/search [c.a.jira.index.MonitoringIndexWriter] [lucene-stats] flush stats: snapshotCount=20049, totalCount=2483576, periodSec=300, flushIntervalMillis=14, indexDirectory=null, indexWriterId=com.atlassian.jira.index.MonitoringIndexWriter@45ea1f81, indexDirectoryId=RAMDirectory@52bedaf6 lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@79461c10 2019-11-12 15:40:17,805 catalina-exec-349 WARN anonymous 940x4070627x10 - [IP Address Sanitized],[IP Address Sanitized] /rest/api/latest/search [c.a.jira.index.MonitoringIndexWriter] Detected frequent flushes (every 14 millis) of lucene index which is below warning limit: jira.index.warn.flush.min.interval.millis=1000 millis. This may affect indexing performance. Please visit https://confluence.atlassian.com/x/w0VwOQ for more information.
Workaround
Adding and Setting the com.atlassian.jira.index.MonitoringIndexWriter package log level to ERROR.
- is related to
-
JRASERVER-69389 Frequent lucene-stats in logs triggered when closing temporary index (RAMDirectory)
- Closed
- is mentioned by
-
DELTA-1045 Loading...
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
- relates to
-
DELTA-1035 Loading...