watcher: removed calibrating with round clock in ticker trigger engine

Closes elastic/elasticsearch#749

Original commit: elastic/x-pack-elasticsearch@f9f2db50d5
This commit is contained in:
Martijn van Groningen 2015-10-07 14:53:57 +02:00
parent 98095a5ca8
commit 56981b5fff
2 changed files with 6 additions and 4 deletions

View File

@ -36,6 +36,12 @@ bin/plugin remove watcher
[[change-list]]
=== Change List
[float]
==== 2.0.0
.Bug fixes
* Fixed an issue where the scheduler may get stuck during Watcher startup. This caused no watches to ever fire.
[float]
==== 2.0.0-rc1

View File

@ -136,10 +136,6 @@ public class TickerScheduleTriggerEngine extends ScheduleTriggerEngine {
@Override
public void run() {
// calibrate with round clock
while (clock.millis() % 1000 > 15) {
}
while (active) {
logger.trace("checking jobs [{}]", clock.nowUTC());
checkJobs();