Affects Version/s: 7.3.X, Master
Component/s: DM > Upgrade
This issue is similar to
LPS-128852. During the UpgradeImageTypeContent process, a "Store is not available" error can occur occasionally. This is due to a race condition.
The solution of
LPS-128852 was to add a dependency from UpgradeBlogsImages (and other upgrade processes that had this issue) onto an activated StoreFactory. The UpgradeImageTypeContent process does not have this dependency, however. Since it is possible for UpgradeImageTypeContent to call StoreFactory.getStore, this means that the upgrade process could fail if UpgradeImageTypeContent starts running before the StoreFactory is activated.
We should add a dependency from UpgradeImageTypeContent onto the activated StoreFactory so that this error cannot occur.
Here is an example stack trace from when the error occurs:
Steps to Reproduce
Unfortunately, this issue cannot be reproduced consistently. It can happen randomly when upgrading from 7.0 to 7.3+, if you have at least one web content article with an image associated with it.