Permalink
Browse files

Add a top-level exception handler to the gizzard scheduler

  • Loading branch information...
1 parent dd690db commit b2bf11b1f808201631834d63f1a2034d388a0260 John Corwin committed Mar 22, 2012
@@ -191,7 +191,7 @@ extends Process with JobConsumer {
} catch {
case e =>
log.error(e, "Uncaught exception in gizzard worker thread")
- Stats.incr("uncaught-exceptions")
+ Stats.incr("job-scheduler-uncaught-exceptions")
}
}
}
@@ -190,7 +190,7 @@ class JobSchedulerSpec extends ConfiguredSpecification with JMocker with ClassMo
}
jobScheduler.process()
- Stats.getCounter("uncaught-exceptions")() mustEqual 1
+ Stats.getCounter("job-scheduler-uncaught-exceptions")() mustEqual 1
}
"too many errors" in {

0 comments on commit b2bf11b

Please sign in to comment.