You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by GitBox <gi...@apache.org> on 2019/04/29 23:42:33 UTC
[GitHub] [incubator-heron] nwangtw opened a new pull request #3251: Check
invalid number of container in round robin packing algorithm
nwangtw opened a new pull request #3251: Check invalid number of container in round robin packing algorithm
URL: https://github.com/apache/incubator-heron/pull/3251
Currently if number of containers is set to an invalid value, we get the following exception which is not ideal.
```
[2019-04-29 15:17:05 -0700] [FINE] org.apache.heron.scheduler.SubmitterMain: Exception when submitting topology
java.lang.NullPointerException
at org.apache.heron.packing.roundrobin.RoundRobinPacking.getRoundRobinAllocation(RoundRobinPacking.java:385)
at org.apache.heron.packing.roundrobin.RoundRobinPacking.packInternal(RoundRobinPacking.java:149)
```
After the change, we would expect "Invlaid number of container: %d" runtime exception.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services