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 2019/02/27 10:40:00 UTC
[jira] [Assigned] (MYRIAD-239) Setting frameworkRole to * causes
exception
[ https://issues.apache.org/jira/browse/MYRIAD-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Yost reassigned MYRIAD-239:
--------------------------------
Assignee: (was: John Yost)
> 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
> Priority: Major
>
> 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
(v7.6.3#76005)