-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
7.2.10, 7.3.8, 7.4.3, 7.5.0-EAP01
-
7.02
-
4
-
Severity 1 - Critical
-
2
-
Summary
When upgrading JIRA to 7.2+ the database columns with data type VARCHAR will not be changed to NVARCHAR. This might trigger JSWSERVER-15917.
Environment
- JIRA 6.4 upgraded to 7.2+
- Microsoft SQL Server 2012 or 2014.
- 1M+ issues.
Steps to Reproduce
- Upgrade a JIRA instance from 6.4 to 7.2 or higher.
Expected Results
Columns data types are changed from VARCHAR to NVARCHAR.
Actual Results
Columns remain at VARCHAR.
Notes
Causes JSWSERVER-15917.
Workaround
Example of workaround for AO_60DB71_LEXORANK table. Similar approach can be done for other tables.
- Stop JIRA.
- Backup your database.
- Delete all indexes from the table AO_60DB71_LEXORANK, except for the primary key.
- Change the data type on the columns AO_60DB71_LEXORANK.RANK and AO_60DB71_LEXORANK.LOCK_HASH using these SQL queries:
ALTER TABLE dbo.AO_60DB71_LEXORANK ALTER COLUMN RANK NVARCHAR(255) NOT NULL; ALTER TABLE dbo.AO_60DB71_LEXORANK ALTER COLUMN LOCK_HASH NVARCHAR(255) NULL;
- Run the following SQL queries to flush caches and update statistics on the database:
DBCC FREEPROCCACHE; SP_UPDATESTATS;
- Start JIRA. The indexes for the table AO_60DB71_LEXORANK will be automatically recreated.
This duplicates JRASERVER-59816
- causes
-
JSWSERVER-15917 Ranking operations fail with the error message 'JIRA Software cannot execute the rank operation at this time. Other users may be ranking the issues that you are trying to rank. Please try again later.'
- Closed
- duplicates
-
JRASERVER-59816 VARCHAR columns in AO_xxx tables on SQL Server are not migrated correctly to NVARCHAR columns when upgrading to JIRA 7.x
- Gathering Impact