Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13715

ComputeScheduleExample doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.10
    • examples
    • None

    Description

      ComputeScheduleExample does not work due to invalid CRON expression.

      Steps to reproduce:

      1. Start ExampleNodeStartup
      2. Run ComputeScheduleExample

      Node output:

      [00:08:02] Ignite node started OK (id=821d7a9c)
      [00:08:02] Topology snapshot [ver=1, locNode=821d7a9c, servers=1, clients=0, state=ACTIVE, CPUs=8, offheap=3.2GB, heap=3.5GB]
      [00:08:02]   ^-- Baseline [id=0, size=1, online=1, offline=0]
      [00:08:32] Joining node doesn't have stored group keys [node=fb94c1cf-1fa4-4049-880d-19fa4dd590ce]
      [00:08:32] Topology snapshot [ver=2, locNode=821d7a9c, servers=2, clients=0, state=ACTIVE, CPUs=8, offheap=6.4GB, heap=7.1GB]
      [00:08:32]   ^-- Baseline [id=0, size=2, online=2, offline=0]
      [00:08:33] Topology snapshot [ver=3, locNode=821d7a9c, servers=1, clients=0, state=ACTIVE, CPUs=8, offheap=3.2GB, heap=3.5GB]
      [00:08:33]   ^-- Baseline [id=0, size=1, online=1, offline=0]
      
      [00:08:33] Ignite node started OK (id=fb94c1cf)
      [00:08:33] Topology snapshot [ver=2, locNode=fb94c1cf, servers=2, clients=0, state=ACTIVE, CPUs=8, offheap=6.4GB, heap=7.1GB]
      [00:08:33]   ^-- Baseline [id=0, size=2, online=2, offline=0]
      
      Compute schedule example started.
      
      >>> Schedule future is done and has been unscheduled.
      >>> Check all nodes for hello message output.
      [00:08:33] Ignite node stopped OK [uptime=00:00:00.085]
      
      Process finished with exit code 0
      

      The log of the first node does not contain the required message.
      Also, there is no error message in the example's output.

      The root cause of the issue is the invalid CRON expression that is used by the example: "{9, 5, 3} * * * * *"
      In accordance with the doc https://apacheignite.readme.io/docs/cron-based-scheduling#syntax-extension
      it should be the following: "{5, 3} * * * * *"

      Attachments

        Issue Links

          Activity

            People

              slava.koptilin Vyacheslav Koptilin
              slava.koptilin Vyacheslav Koptilin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h