Liferay database update from 7.2.0 to 7.2.1.
There has been a performance improvement for LPKGDeployerRegistrar:
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.