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

Jungtaek Lim resolved STORM-2429.
---------------------------------
       Resolution: Fixed
         Assignee: David Judd
    Fix Version/s: 1.1.1
                   1.0.4
                   2.0.0

Thanks [~djudd1905], I merged into master, 1.x, 1.0.x branches.

> non-string values in supervisor.scheduler.meta cause crash
> ----------------------------------------------------------
>
>                 Key: STORM-2429
>                 URL: https://issues.apache.org/jira/browse/STORM-2429
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-core
>    Affects Versions: 1.0.3
>            Reporter: David Judd
>            Assignee: David Judd
>            Priority: Minor
>             Fix For: 2.0.0, 1.0.4, 1.1.1
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The type of values in supervisor.scheduler.meta is not validated, but if one 
> is not a string, supervisors crash during Thrift serialization with:
> java.lang.ClassCastException: java.lang.Boolean cannot be cast to 
> java.lang.String
>         at 
> org.apache.storm.generated.SupervisorInfo$SupervisorInfoStandardScheme.write(SupervisorInfo.java:1241)
>         at 
> org.apache.storm.generated.SupervisorInfo$SupervisorInfoStandardScheme.write(SupervisorInfo.java:1049)
>         at 
> org.apache.storm.generated.SupervisorInfo.write(SupervisorInfo.java:923)
>         at org.apache.storm.thrift.TSerializer.serialize(TSerializer.java:79)
>         at 
> org.apache.storm.serialization.GzipThriftSerializationDelegate.serialize(GzipThriftSerializationDelegate.java:40)
>         at org.apache.storm.utils.Utils.serialize(Utils.java:210)
>         at 
> org.apache.storm.cluster.StormClusterStateImpl.supervisorHeartbeat(StormClusterStateImpl.java:419)
>         at 
> org.apache.storm.daemon.supervisor.timer.SupervisorHeartbeat.run(SupervisorHeartbeat.java:85)
>         at 
> org.apache.storm.daemon.supervisor.Supervisor.launch(Supervisor.java:202)
>         at 
> org.apache.storm.daemon.supervisor.Supervisor.launchDaemon(Supervisor.java:243)
>         at 
> org.apache.storm.daemon.supervisor.Supervisor.main(Supervisor.java:362)
> I will attach a PR with a simple fix



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to