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

Scheduler jobs are lost if master token released transition fails

    Details

      Description

      Steps to Reproduce:

      1. Start a cluster with a couple of nodes
      2. Simulate a connection lost between both nodes, so that both become master.
      3. Recreate the connection, but make master answer node last more than clusterable.advice.call.master.timeout seconds (i.e. by adding a breakpoint in com.liferay.portal.scheduler.multiple.internal.ClusterSchedulerEngine.getScheduledJobs(StorageType))
      4. Stop master node.
      5. Execute the following code in the only available node:
        import com.liferay.portal.kernel.scheduler.*;
        import com.liferay.portal.kernel.scheduler.StorageType;
        def schedulerJobs = SchedulerEngineHelperUtil.getScheduledJobs(StorageType.MEMORY_CLUSTERED);
        out.println(schedulerJobs.size());
        

      Actual Results:

      Scheduled memory clustered jobs are empty.

      Expected Results:

      Even if an error occurs, jobs shouldn't have lost, maybe not fully synchronized, but at least not lost.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              mariano.alvaro Mariano Álvaro
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 6 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP30
                  7.0.4 CE GA5
                  7.1.X
                  Master