[ 
https://issues.apache.org/jira/browse/SLIDER-524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14172853#comment-14172853
 ] 

Jonathan Maron commented on SLIDER-524:
---------------------------------------

this may be OK since we do not have any way to meaning fully use configs that 
return more than one port

> AgentProviderService.processAllocatedPorts doesn't handle array of ports
> ------------------------------------------------------------------------
>
>                 Key: SLIDER-524
>                 URL: https://issues.apache.org/jira/browse/SLIDER-524
>             Project: Slider
>          Issue Type: Bug
>            Reporter: Jonathan Maron
>
> For an appConfig.json entry such as:
>     "site.storm-site.supervisor.slots.ports": 
> "[${SUPERVISOR.ALLOCATED_PORT}{PER_CONTAINER},${SUPERVISOR.ALLOCATED_PORT}{PER_CONTAINER}]",
>   The code fails as follows:
> 14/10/15 16:39:34 INFO agent.AgentProviderService: Recording allocated port 
> for storm-site.supervisor.slots.ports as [46877,58924]
> 14/10/15 16:39:34 WARN agent.AgentProviderService: Failed to parse 
> [46877,58924]: java.lang.NumberFormatException: For input string: 
> "[46877,58924]"



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

Reply via email to