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

Scheduler MEMORY_CLUSTERED Job is not starting when triggered by slave node

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: None
    • Labels:
      None

      Description

      1) Enable cluster and start node1

      2) After node1 is fully started, start node2

      3) On node2, go to Control Panel->Configuration->Server Administration->Script, run the following groovy script:

      import com.liferay.portal.kernel.scheduler.SchedulerEngineHelperUtil;
      import com.liferay.portal.kernel.scheduler.SchedulerException;
      import com.liferay.portal.kernel.scheduler.StorageType;
      import com.liferay.portal.kernel.scheduler.TimeUnit;
      import com.liferay.portal.kernel.scheduler.Trigger;
      import com.liferay.portal.kernel.scheduler.TriggerFactoryUtil;
      
      
      Trigger trigger = TriggerFactoryUtil.createTrigger(
      "test.job.name.1.memory.clustered", "test.job.group.1.memory.clusterted", 10,
      TimeUnit.SECOND);
      
      String script = "System.out.println(\"Memory clustered job 1 is triggered at \" + System.currentTimeMillis());";
      
      try {
      SchedulerEngineHelperUtil.addScriptingJob(
      trigger, StorageType.MEMORY_CLUSTERED, "memory clustered job", "groovy", script, 0);
      
      out.println("Memory clustered job 1 is added");
      }
      catch (SchedulerException ex) {
      out.println(ex);
      }

      4) Expected result: on node1, job is running by logging on console:

      Memory job 1 is triggered at 1502232836800
      

      Actual result: no job is running no node1.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tina.tian Tina Tian
              Reporter:
              tina.tian Tina Tian
              Participants of an Issue:
              Recent user:
              Tina Tian
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 22 weeks, 6 days ago

                  Packages

                  Version Package