You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "David Judd (JIRA)" <ji...@apache.org> on 2017/03/21 23:06:41 UTC
[jira] [Created] (STORM-2429) non-string values in
supervisor.scheduler.meta cause crash
David Judd created STORM-2429:
---------------------------------
Summary: 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
Priority: Minor
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)