-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 9.10-HF42, 10.10-HF23, 11.1, 2021.0
-
Component/s: Core MongoDB, Scheduler
-
Release Notes Summary:The scheduler services handles the startup with multiple Nuxeo nodes.
-
Tags:
-
Impact type:Configuration Change
-
Upgrade notes:
-
Team:FG
-
Sprint:nxFG 11.1.12
When starting at least two nuxeo at the same time could lead to the issue below for one of the two nodes. Just restarting the failing node will fix the issue.
2020-01-21T11:42:04,167 ERROR [main] [org.nuxeo.runtime.model.ComponentManager] Component service:org.nuxeo.ecm.core.scheduler.SchedulerService notification of application started failed: null java.lang.NullPointerException: null at com.novemberain.quartz.mongodb.dao.JobDao.storeJobInMongo(JobDao.java:134) ~[quartz-mongodb-2.0.0-NX3.jar:?] at com.novemberain.quartz.mongodb.TriggerAndJobPersister.storeJobAndTrigger(TriggerAndJobPersister.java:106) ~[quartz-mongodb-2.0.0-NX3.jar:?] at com.novemberain.quartz.mongodb.MongoDBJobStore.storeJobAndTrigger(MongoDBJobStore.java:189) ~[quartz-mongodb-2.0.0-NX3.jar:?] at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:855) ~[quartz-2.3.0.jar:?] at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:249) ~[quartz-2.3.0.jar:?] at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.schedule(SchedulerServiceImpl.java:240) ~[nuxeo-core-event-10.10-HF18.jar:?] at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.schedule(SchedulerServiceImpl.java:213) ~[nuxeo-core-event-10.10-HF18.jar:?] at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.registerSchedule(SchedulerServiceImpl.java:195) ~[nuxeo-core-event-10.10-HF18.jar:?] at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.registerSchedule(SchedulerServiceImpl.java:184) ~[nuxeo-core-event-10.10-HF18.jar:?] at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.setupScheduler(SchedulerServiceImpl.java:113) ~[nuxeo-core-event-10.10-HF18.jar:?] at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.start(SchedulerServiceImpl.java:143) ~[nuxeo-core-event-10.10-HF18.jar:?] at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:381) [nuxeo-runtime-10.10-HF10.jar:?]
Regarding the library code it looks like we're facing a concurrency issue such as job created by nodeA, nodeB fails to create the same job, nodeB fails to retrieve the job (probably deleted?).
We want to have a look at this and fix it at least in our fork.