Branch: refs/heads/task-scheduler
Home:
https://github.com/hawkular/hawkular-metrics
Commit: 4467d6fb0b55d51820689d7df45db7be2953104d
https://github.com/hawkular/hawkular-metrics/commit/4467d6fb0b55d51820689...
Author: John Sanda <jsanda(a)redhat.com>
Date: 2015-08-05 (Wed, 05 Aug 2015)
Changed paths:
M task-queue/src/main/java/org/hawkular/metrics/tasks/impl/TaskSchedulerImpl.java
M task-queue/src/test/java/org/hawkular/metrics/tasks/impl/TaskSchedulerITest.java
Log Message:
-----------
[HWKMETRICS-168] add test to verify execution order and fix query
I am adding a test that simulates a long running task. Every task is supposed
execute every minute. One of the tasks takes 3 minutes to complete. Tasks are
split into two groups. The test verifies that tests are executed in the
expected order despite the long delay.
This commit also fixes a bug in the query to find available leases. The filter
function needs to also check that the owern is not set in addition to the lease
not being finished.