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

Provide information regarding pending upgrade processes for modules on startup

    Details

      Description

      Starting in 7.3, upgrade processes for modules are not executed automatically on startup to prevent issues when not having a database backup. This is configurable with the property upgrade.database.auto.run (false by default) but it's not recommended to set it to true in production environments.

      For that reason, it's really important to provide more information on startup regarding pending upgrade processes so the users can execute them accordingly (using the upgrade tool)

      Remember that only micro upgrade processes are optional and they will be the only ones added in fix packs. If minor upgrade processes are needed, additional information will be provided and they will be scheduled only in service packs. For CE users, any kind of upgrade process (even major with early GAs) can be included between GAs so executing the upgrade tool between GAs is usually required.

      Technical Notes:

      For the Core we already do something similar in the StartupHelperUtil:

      		if (!PortalUpgradeProcess.isInLatestSchemaVersion(
      				DataAccess.getConnection())) {
      
      			if (_log.isInfoEnabled()) {
      				_log.info(
      					"Execute the upgrade tool first if you need to upgrade " +
      						"the portal to the latest schema version");
      			}
      		}
      

      For modules we could do something similar that this logic:
      com.liferay.portal.osgi.debug.internal.osgi.commands.SystemCheckOSGiCommands#_check

      which is called in the MainServlet.java during the startup registering system.check as the
      module.service.lifecycle

        Attachments

          Activity

            People

            Assignee:
            alberto.chaparro Alberto Chaparro
            Reporter:
            alberto.chaparro Alberto Chaparro
            Engineering Assignee:
            Sam Ziemer
            Recent user:
            Marta Elicegui
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.3.6 CE GA7
                7.3.X
                7.4.X
                Master