-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
7.0.9, 7.2.12, 7.6.1, 8.16.1
-
7
-
24
-
Severity 1 - Critical
-
9
-
Summary
When it comes to JIRA 7.x, they start to use NVARCHAR columns instead of VARCHAR columns in AO_xxx tables (like AO_60DB71_SPRINT) on SQL Server for the purpose of avoiding AO-386. (FYI. JIRA 7.x start to use the fixed version of ao-plugin.)
However, only the case that we upgrade JIRA from the earlier version than JIRA 7.x, the columns are not migrated correctly.
Environment
- OS
- Windows
- DB
- SQL Server
- JIRA
- Before upgrading : JIRA 6.x
- After upgrading : JIRA 7.x
Steps to Reproduce
- Install JIRA 6.x and JIRA Agile
- Setup the JIRA instance to use SQL Server as the external DB
- Upgrade the JIRA instance to JIRA 7.x
Expected Results
VARCHAR columns should be migrated correctly to NVARCHAR columns.
Actual Results
VARCHAR columns are still VARCHAR columns after the upgrading.
Notes
- This bug might lead to multibytes character problems.
- Causes
JSWSERVER-15917
Workaround
- Alter the tables manually
- Export the data as XML from the instance and import it to a new instance
Example of workaround for AO_60DB71_LEXORANK table
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.
- is duplicated by
-
JSWSERVER-16049 There is no upgrade task to change columns from VARCHAR to NVARCHAR when using SQL Server
- Closed
- is related to
-
JSWSERVER-16243 Upgrading Jira to 7.6 causes DVCS to fail on MS SQL environments
- Closed
- relates to
-
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
-
JRASERVER-66618 NTEXT columns in AO_xxx tables on SQL Server are not migrated automatically to NVARCHAR columns when upgrading to 7.4
- Gathering Impact
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...