You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myriad.apache.org by "John Yost (JIRA)" <ji...@apache.org> on 2016/08/17 18:24:20 UTC

[jira] [Created] (MYRIAD-239) Setting frameworkRole to * causes exception

John Yost created MYRIAD-239:
--------------------------------

             Summary: Setting frameworkRole to * causes exception
                 Key: MYRIAD-239
                 URL: https://issues.apache.org/jira/browse/MYRIAD-239
             Project: Myriad
          Issue Type: Bug
            Reporter: John Yost


Setting the frameworkRole in myriad-config-default.yml causes the following exception to be thrown:

org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler: Exception thrown while trying to create a task for nm
java.lang.IllegalArgumentException: n must be positive
    at java.util.Random.nextInt(Random.java:300)
    at org.apache.myriad.scheduler.resource.RangeResource.getRandomValues(RangeResource.java:128)
    at org.apache.myriad.scheduler.resource.RangeResource.consumeResource(RangeResource.java:99)
    at org.apache.myriad.scheduler.resource.ResourceOfferContainer.consumePorts(ResourceOfferContainer.java:171)
    at org.apache.myriad.scheduler.NMTaskFactory.createTask(NMTaskFactory.java:45)
    at org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:119)
    at org.apache.myriad.scheduler.event.handlers.ResourceOffersEventHandler.onEvent(ResourceOffersEventHandler.java:49)
    at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)