[ 
https://issues.apache.org/jira/browse/STORM-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ethan Li closed STORM-3195.
---------------------------
    Resolution: Invalid

Community 1.x will not have this issue because 
https://github.com/apache/storm/pull/2325 wasn't merged into 1.x. The worker 
count will always be int and acker executer number will always be int. 

Our internal version 1.x has https://github.com/apache/storm/pull/2325 feature. 
And that's why it happened. 

> IllegalArgumentException when rolling upgrade nimbus from 1.x to 2.x
> --------------------------------------------------------------------
>
>                 Key: STORM-3195
>                 URL: https://issues.apache.org/jira/browse/STORM-3195
>             Project: Apache Storm
>          Issue Type: Bug
>            Reporter: Ethan Li
>            Priority: Major
>
> {code:java}
> 2018-08-15 15:49:06.550 o.a.s.d.n.Nimbus timer [ERROR] Error while processing 
> event
> java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know 
> how to convert 1.7604166666666667 to int
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.lambda$launchServer$48(Nimbus.java:2837)
>  ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         at org.apache.storm.StormTimer$1.run(StormTimer.java:110) 
> ~[storm-client-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.StormTimer$StormTimerTask.run(StormTimer.java:226) 
> [storm-client-2.0.0.y.jar:2.0.0.y]
> Caused by: java.lang.IllegalArgumentException: Don't know how to convert 
> 1.7604166666666667 to int
>         at org.apache.storm.utils.ObjectReader.getInt(ObjectReader.java:78) 
> ~[storm-client-2.0.0.y.jar:2.0.0.y]
>         at org.apache.storm.daemon.StormCommon.addAcker(StormCommon.java:256) 
> ~[storm-client-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.StormCommon.systemTopologyImpl(StormCommon.java:523) 
> ~[storm-client-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.StormCommon.systemTopology(StormCommon.java:440) 
> ~[storm-client-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.StormCommon.stormTaskInfoImpl(StormCommon.java:544) 
> ~[storm-client-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.StormCommon.stormTaskInfo(StormCommon.java:460) 
> ~[storm-client-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.computeExecutors(Nimbus.java:1732) 
> ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.getOrUpdateExecutors(Nimbus.java:1357) 
> ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.computeExecutorToComponent(Nimbus.java:1752)
>  ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.readTopologyDetails(Nimbus.java:1582) 
> ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.getResourcesForTopology(Nimbus.java:2034)
>  ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.getClusterInfoImpl(Nimbus.java:2676) 
> ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.sendClusterMetricsToExecutors(Nimbus.java:2701)
>  ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         at 
> org.apache.storm.daemon.nimbus.Nimbus.lambda$launchServer$48(Nimbus.java:2834)
>  ~[storm-server-2.0.0.y.jar:2.0.0.y]
>         ... 2 more
> {code}
> We were rolling upgrading our storm cluster to 2.x and we found this error 
> from nimbus.log. It's not necessary to do rolling upgrade but good news is we 
> basically made it work. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to