-
Bug
-
Resolution: Fixed
-
Low
-
6.4.13, 6.4.14
-
6.04
-
Severity 1 - Critical
-
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Summary
For each user login event JIRA flushes number of cached: activeUsersCount, activeUsersCountForLicense, licenseRoleGroups
Steps to Reproduce
- Enable cache-flush event logging
- Login to JIRA
Expected Results
No cache flush events
Actual Results
Caches are flushed. The below exception is thrown in the logs:
2017-03-08 15:59:04,879 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.licenseRoleGroups] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.licenseRoleGroups was flushed. Stacktrace: 2017-03-08 15:59:04,892 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense was flushed. Stacktrace: 2017-03-08 15:59:04,896 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [user.util.UserUtilImpl.activeUsersCount] Cache com.atlassian.jira.user.util.UserUtilImpl.activeUsersCount was flushed. Stacktrace: 2017-03-08 15:59:04,899 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.licenseRoleGroups] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.licenseRoleGroups was flushed. Stacktrace: 2017-03-08 15:59:04,904 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense was flushed. Stacktrace: 2017-03-08 15:59:04,905 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [user.util.UserUtilImpl.activeUsersCount] Cache com.atlassian.jira.user.util.UserUtilImpl.activeUsersCount was flushed. Stacktrace: 2017-03-08 15:59:04,913 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.licenseRoleGroups] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.licenseRoleGroups was flushed. Stacktrace: 2017-03-08 15:59:04,914 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense was flushed. Stacktrace: 2017-03-08 15:59:04,915 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [user.util.UserUtilImpl.activeUsersCount] Cache com.atlassian.jira.user.util.UserUtilImpl.activeUsersCount was flushed. Stacktrace: 2017-03-08 15:59:04,922 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.licenseRoleGroups] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.licenseRoleGroups was flushed. Stacktrace: 2017-03-08 15:59:04,924 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense was flushed. Stacktrace: 2017-03-08 15:59:04,925 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [user.util.UserUtilImpl.activeUsersCount] Cache com.atlassian.jira.user.util.UserUtilImpl.activeUsersCount was flushed. Stacktrace: 2017-03-08 15:59:04,933 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.licenseRoleGroups] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.licenseRoleGroups was flushed. Stacktrace: 2017-03-08 15:59:04,934 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense] Cache com.atlassian.jira.license.DefaultLicenseRoleManager.activeUsersCountForLicense was flushed. Stacktrace: 2017-03-08 15:59:04,935 http-bio-8080-exec-8 INFO anonymous 959x1050x1 19iqhul 127.0.0.1 /login.jsp [user.util.UserUtilImpl.activeUsersCount] Cache com.atlassian.jira.user.util.UserUtilImpl.activeUsersCount was flushed. Stacktrace:
Notes
Those 3 caches a very important and required for almost any incoming http call.
In JIRA 7 license count framework was changed and problem was fixed.
Workaround
If possible, reduce number of login events
- For REST API use session cookie
- For SOAP, login and reuse session, see https://developer.atlassian.com/display/JIRADEV/Remote+API+(SOAP)+Examples
- relates to
-
JRACLOUD-64347 JIRA flushed cache licenseRoleGroups activeUsersCountForLicense and activeUsersCount the for each user login
- Closed