Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-78519

Changing UpgradeSharding process order in the upgrade processes sequence.

    Details

      Description

      Steps to reproduce it:

      1. Startup a Liferay 6.2.10 using sharding
      2. Create three instances, one per shard.
      3. Upgrade that database to master following these instructions:
        https://dev.liferay.com/discover/deployment/-/knowledge_base/7-0/upgrading-sharded-environment

      Actual results:
      Find the string UpgradeSharding in the upgrade.log file. It appears at the end of the Core upgrade after executing UpgradeSubscription, UpgradeWebsite and UpgradeMobileDeviceRules
      The upgrade.log file gets a

      com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the key {companyId=####, defaultUser=true}
      

      for every shard that is not the default one.

      Expected results:
      Find the string UpgradeSharding in the upgrade.log file. It will appear at the begining of the Core upgrade after executing UpgradeSchema and UpgradeKernelPackage
      The upgrade.log file does not get any exception such a

      com.liferay.portal.kernel.exception.NoSuchUserException: No User exists with the key {companyId=####, defaultUser=true}
      

      Solution:
      Changing UpgradeSharding process order in the upgrade processes sequence prevents raising those exceptions.

        Attachments

          Activity

            People

            Assignee:
            sharry.shi Sharry Shi
            Reporter:
            sergio.alonso Sergio Alonso
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 6 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 DXP FP47
                7.0.0 DXP SP8
                7.0.X
                7.1.X
                Master