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

Scheduler MEMORY_CLUSTERED jobs are lost if plugin is redeployed in slave

    Details

      Description

      When redeploying first a delete gets done and then the job is scheduled again. Because from ClusterSchedulerEngine we trust master to notify slaves we don't do anything when is a MEMORY_CLUSTERED job in the slave. Hence, when the slave deploys after the master (or the master doesn't deploy) the job is deleted from the slave and not scheduled back

       

      Steps to Reproduce:

      1. Deploy a cluster with a couple of nodes.
      2. Deploy a plugin wtih a defined job first in master, then in the slave.
      3. Check that the job is scheduled (com.liferay.portal.kernel.scheduler.SchedulerEngineHelperUtil.getScheduledJobs())
      4. Redeploy the plugin, first in master, then in the slave. The order is crucial.
      5. Stop the master.
      6. Check if the job is scheduled in the former slave (now master).

       

      Actual Results:

      Job is deleted from _memoryClusteredJobs, so after step 6 job is no longer scheduled.

       

      Expected Results:

      Job should remain in _memoryClusteredJobs, and after step 6 be scheduled.

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                raven.song Raven Song
                Reporter:
                mariano.alvaro Mariano Álvaro
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 28 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP34
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X
                  7.1.0 M1
                  7.1.X
                  Master