}
catch (Exception e) {
assertTrue(e.getMessage().contains("NoSuchObjectException"));
}
// Nothing should be queued as there are no pull dependencies
CallableQueueService callableQueueService = Services.get().get(CallableQueueService.class);
assertEquals(0, callableQueueService.getQueueDump().size());
// Nothing should be queued as there are no pull missing dependencies
// but only push missing deps are there
new CoordActionInputCheckXCommand(actionId, job.getId()).call();
callableQueueService = Services.get().get(CallableQueueService.class);
assertEquals(0, callableQueueService.getQueueDump().size());
setMissingDependencies(actionId, newHCatDependency1);
try {
new CoordPushDependencyCheckXCommand(actionId, true).call();
fail();
}
catch (Exception e) {
assertTrue(e.getMessage().contains("NoSuchObjectException"));
}
// Should be requeued at the recovery service interval
final List<String> queueDump = callableQueueService.getQueueDump();
assertEquals(1, callableQueueService.getQueueDump().size());
assertTrue(queueDump.get(0).contains("coord_push_dep_check"));
log.info("Queue dump is " + queueDump.toString());
// Delay should be something like delay=599999. Ignore last three digits
assertTrue(queueDump.get(0).matches(".* delay=599[0-9]{3}"));
}