krux / starport

Apache License 2.0
2 stars 7 forks source link

Starport start schedule pipeline will crash when there are no graphite host configured #10

Closed realstraw closed 5 years ago

realstraw commented 5 years ago
Exception in thread "main" java.lang.IllegalArgumentException: bound must be positive
    at java.util.Random.nextInt(Random.java:388)
    at scala.util.Random.nextInt(Random.scala:66)
    at com.krux.starport.metric.MetricSettings.getGraphite(MetricSettings.scala:22)
    at com.krux.starport.metric.MetricSettings.getReporter(MetricSettings.scala:27)
    at com.krux.starport.StartScheduledPipelines$.main(StartScheduledPipelines.scala:263)
    at com.krux.starport.StartScheduledPipelines.main(StartScheduledPipelines.scala)