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

Unable to track installed apps during upgrade

    Details

      Description

      Liferay database update from 7.2.0 to 7.2.1.

      There has been a performance improvement for LPKGDeployerRegistrar: LPS-96977 

      It looks like running Liferay database update to 7.2.1 causes some errors due to bulk read of Marketplace_Module records to a HashMap.

      The module HashMap seems not to be updated after deleteModule->addModule.

      This seems to cause errors if there are bundles that are mapped to same app (that naturally points to same set of modules) and the modules are updated during update. The re-register for modules succeeds for the first app but all subsequent re-registers fail due to changed moduleIds not being updated to the modules HashMap.

      An example of bundles using the same Marketplace_App is

      Liferay CE Foundation - Liferay CE Connector to Elasticsearch 6 - API (3.0.0)
      Liferay CE Foundation - Liferay CE Connector to Elasticsearch 6 - Impl (3.0.0)

      Here the re-register of the first bundle succeeds but re-register of the second bundle fails due to changed moduleIds that have not been updated to modules HashMap.

      Please see below a part of the upgrade log.

      2019-12-04 14:19:16.503 WARN  [Elasticsearch initialization thread][EmbeddedElasticsearchConnection:288] Liferay is configured to use embedded Elasticsearch as its search engine. Do NOT use embedded Elasticsearch in production. Embedded Elasticsearch is useful for development and demonstration purposes. Refer to the documentation for details on the limitations of embedded Elasticsearch. Remote Elasticsearch connections can be configured in the Control Panel.
      2019-12-04 14:19:24.212 ERROR [main][LPKGDeployerRegistrar:230] Unable to track installed app Liferay CE Web Experience - Liferay CE Journal - API with Marketplace
      com.liferay.marketplace.exception.NoSuchModuleException: No Module exists with the primary key 1504553
      	at com.liferay.marketplace.service.persistence.impl.ModulePersistenceImpl.remove(ModulePersistenceImpl.java:3638)
      ...
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            mikael.andersson@alekstra.com Mikael Andersson
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 44 weeks, 3 days ago

                Packages

                Version Package
                7.2.X
                7.3.X
                Master