From f59de3d83e756ae2f9d40f9e5feb22f540b54eba Mon Sep 17 00:00:00 2001 From: Pavol Mederly Date: Fri, 23 Jun 2017 10:29:24 +0200 Subject: [PATCH] Some more logging at task manager initialization. --- .../java/com/evolveum/midpoint/task/quartzimpl/Initializer.java | 2 +- .../midpoint/task/quartzimpl/execution/LocalNodeManager.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/Initializer.java b/repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/Initializer.java index abcc100adac..9fbd7ff5544 100644 --- a/repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/Initializer.java +++ b/repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/Initializer.java @@ -104,7 +104,7 @@ public void init(OperationResult result) throws TaskManagerInitializationExcepti } // populate the scheduler with jobs (if RAM-based), or synchronize with midPoint repo - if (taskManager.getExecutionManager().synchronizeJobStores(result) == false) { + if (!taskManager.getExecutionManager().synchronizeJobStores(result)) { if (!configuration.isJdbcJobStore()) { LOGGER.error("Some or all tasks could not be imported from midPoint repository to Quartz job store. They will therefore not be executed."); } else { diff --git a/repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/execution/LocalNodeManager.java b/repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/execution/LocalNodeManager.java index ca294cedca6..1f555db16d6 100644 --- a/repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/execution/LocalNodeManager.java +++ b/repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/execution/LocalNodeManager.java @@ -126,12 +126,14 @@ void initializeScheduler() throws TaskManagerInitializationException { quartzProperties.put("org.quartz.threadPool.makeThreadsDaemons", "true"); } + LOGGER.info("Initializing Quartz scheduler (but not starting it yet)."); // initialize the scheduler (without starting it) try { LOGGER.trace("Quartz scheduler properties: {}", quartzProperties); StdSchedulerFactory sf = new StdSchedulerFactory(); sf.initialize(quartzProperties); getGlobalExecutionManager().setQuartzScheduler(sf.getScheduler()); + LOGGER.info("... Quartz scheduler initialized."); } catch (SchedulerException e) { throw new TaskManagerInitializationException("Cannot initialize the Quartz scheduler", e); }