[
https://issues.apache.org/jira/browse/FLINK-988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14045825#comment-14045825
]
Robert Metzger edited comment on FLINK-988 at 6/27/14 11:20 AM:
----------------------------------------------------------------
I don't think so. For my YARN RPC service, a method was returning a boolean and
it failed at that point with a class cast exception.
This method is also returning a {{IntegerRecord}} instead of an {{int}}:
https://github.com/apache/incubator-flink/blob/b4b633eab9a70e14d2e0dd5252f4b092a3689093/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/protocols/JobManagementProtocol.java#L76
was (Author: rmetzger):
I don't think so. For my YARN RPC service, a method was returning a boolean and
it failed at that point with a class cast exception.
This method is also returning a {{IntegerRecord}} instead of an {{int}}.
> ExtendedManagementProtocol.getAvailableSlots() returns non-serializable type
> ----------------------------------------------------------------------------
>
> Key: FLINK-988
> URL: https://issues.apache.org/jira/browse/FLINK-988
> Project: Flink
> Issue Type: Bug
> Components: JobManager
> Affects Versions: 0.6-incubating
> Reporter: Robert Metzger
> Priority: Minor
>
> I think the [[ExtendedManagementProtocol.getAvailableSlots()]] method is
> returning an invalid type.
> Our RPC service is casing the return type of the RPC invocation to
> [[IOReadableWritable]]:
> https://github.com/apache/incubator-flink/blob/master/stratosphere-runtime/src/main/java/eu/stratosphere/nephele/ipc/RPC.java#L419
> This will lead to a ClassCastException at runtime.
> The method getAvailableSlots() is not used for any RPC requests (only for
> local testing, without an actual RPC call).
--
This message was sent by Atlassian JIRA
(v6.2#6252)