Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-3195

IllegalArgumentException when rolling upgrade nimbus from 1.x to 2.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • None
    • None

    Description

      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
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ethanli Ethan Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: