Vyacheslav Koptilin created IGNITE-13715:
--------------------------------------------
Summary: ComputeScheduleExample doesn't work
Key: IGNITE-13715
URL:
https://issues.apache.org/jira/browse/IGNITE-13715 Project: Ignite
Issue Type: Bug
Components: examples
Reporter: Vyacheslav Koptilin
Assignee: Vyacheslav Koptilin
{{ComputeScheduleExample}} does not work due to invalid CRON expression.
Steps to reproduce:
# Start {{ExampleNodeStartup}}
# Run {{ComputeScheduleExample}}
Node output:
{noformat}
[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]
{noformat}
{noformat}
[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
{noformat}
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} * * * * *"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)