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

Race condition on startup with autoUpgrade

    Description

    Race condition on startup when auto upgrade enabled (upgrade.database.auto.run=true):

    Steps to Reproduce:

    1. Import attached 7.1.10.3 database (MySQL)
    2. Set portal-ext properties
      upgrade.database.auto.run=true
      module.framework.properties.dependency.manager.sync.timeout=1800
      module.framework.properties.initial.system.check.enabled=true
      

      + MySQL Connection properties

    3. Start master against the 7.1 database to execute an upgrade on startup

    Expected Result:
    Upgrade on startup always completes without unsatisfied dependencies in the osgi bundles

    Actual Result:
    Upgrade on startup sometimes has unsatisfied dependencies in the osgi bundles

    The failure rate is pretty low for an individual test (5%). But because we run multiple upgrade test executions regularly on CI (and on different database dumps), this issue can be seen every day in automation.

    Can occurs on different bundles
    Example

     [parallel] 20:49:58,303 WARN [main][SystemCheckOSGiCommands:137] Declarative Service Unsatisfied Component Checker check result: 
     [parallel] Bundle \{id: 356, name: com.liferay.redirect.web, version: 1.0.28}
     [parallel] Declarative Service {id: 5389, name: com.liferay.redirect.web.internal.application.list.RedirectPanelApp, unsatisfied references: 
     [parallel] \{name: Portlet, target: (javax.portlet.name=com_liferay_redirect_web_internal_portlet_RedirectPortlet)}
     [parallel] }
     [parallel] 20:49:58,303 INFO [main][SystemCheckOSGiCommands:114] Running "Missing Component Scanner". You can run this by itself with command "ds:missing" in gogo shell.
    

    Additional Examples from CI:
    https://test-1-2.liferay.com/job/test-portal-testsuite-upstream-batch(master)/38626/AXIS_VARIABLE=0,label_exp=!master/consoleText
    https://test-1-4.liferay.com/job/test-portal-testsuite-upstream-batch(master)/35366/AXIS_VARIABLE=0,label_exp=!master/consoleText
    https://test-1-12.liferay.com/job/test-portal-testsuite-upstream-batch(master)/32789/AXIS_VARIABLE=0,label_exp=!master/consoleText

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            victor.ware Victor Ware
            Reporter:
            victor.ware Victor Ware
            Participants of an Issue:
            Recent user:
            Maria Muriel
            Engineering Assignee:
            Sam Ziemer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              30 weeks, 5 days ago

                Packages

                Version Package
                Master