diff --git a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java index 0f2b017e258..3d5dfb0697a 100644 --- a/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java +++ b/server/src/com/cloud/storage/snapshot/SnapshotSchedulerImpl.java @@ -392,8 +392,12 @@ public class SnapshotSchedulerImpl implements SnapshotScheduler { TimerTask timerTask = new TimerTask() { @Override public void run() { - Date currentTimestamp = new Date(); - poll(currentTimestamp); + try { + Date currentTimestamp = new Date(); + poll(currentTimestamp); + } catch (Throwable t) { + s_logger.warn("Catch throwable in snapshot scheduler " + t.toString(), t); + } } }; _testClockTimer = new Timer("SnapshotPollTask");