Soaarqube从3.7.2升级到4.4。在db升级期间挂起

时间:2014-10-08 08:54:52

标签: sonarqube

我正在将sonarqube从3.7.2升级到4.4。数据库迁移在“MergeMeasureDataIntoProjectMeasures”上花费超过2个小时。这是日志。

2014.10.07 23:31:27 INFO  [DbMigration]
2014.10.07 23:31:27 INFO  [DbMigration]  ==  RemoveActiveDashboardsLinkedOnUnsharedDashboards: migrating ===============
2014.10.07 23:31:27 INFO  [DbMigration]  ==  RemoveActiveDashboardsLinkedOnUnsharedDashboards: migrated (0.0320s) ======
2014.10.07 23:31:27 INFO  [DbMigration]
2014.10.07 23:31:27 INFO  [DbMigration]  ==  MergeMeasureDataIntoProjectMeasures: migrating ============================
2014.10.07 23:31:27 INFO  [DbMigration]  -- add_column(:project_measures, "measure_data", :binary, {:null=>true})
2014.10.07 23:31:27 INFO  [DbMigration]     -> 0.0080s
2014.10.07 23:31:27 INFO  [DbMigration]     -> 0 rows

如果您遇到类似问题,请告诉我解决方法。

由于 VIMAL

1 个答案:

答案 0 :(得分:0)

Thanks for quick reply Fabrice and kkuilla.

"RemoveActiveDashboardsLinkedOnUnsharedDashboards" has completed with in 1s. The issue was with "MergeMeasureDataIntoProjectMeasures"


Upgrade has been completed. 

678849 have been upgraded. hence it took 2.30 hours.

here is the log


2014.10.07 23:31:27 INFO  [DbMigration]  ==  MergeMeasureDataIntoProjectMeasures: migrating ============================
2014.10.07 23:31:27 INFO  [DbMigration]  -- add_column(:project_measures, "measure_data", :binary, {:null=>true})
2014.10.07 23:31:27 INFO  [DbMigration]     -> 0.0080s
2014.10.07 23:31:27 INFO  [DbMigration]     -> 0 rows
2014.10.08 02:01:22 INFO  [o.s.s.d.m.MassUpdater]  678849 rows have been updated
2014.10.08 02:01:22 INFO  [DbMigration]  -- drop_table(:measure_data)
2014.10.08 02:01:23 INFO  [DbMigration]     -> 0.5570s
2014.10.08 02:01:23 INFO  [DbMigration]     -> 0 rows
2014.10.08 02:01:23 INFO  [DbMigration]  ==  MergeMeasureDataIntoProjectMeasures: migrated (8995.5290s) ================