[jboss-jira] [JBoss JIRA] (WFLY-10313) CommandDispatcher.executeOnNode(...) throws ClassCastException if target node has no corresponding CommandDispatcher
Paul Ferraro (JIRA)
issues at jboss.org
Mon Apr 30 16:10:01 EDT 2018
[ https://issues.jboss.org/browse/WFLY-10313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Ferraro updated WFLY-10313:
--------------------------------
Description:
CommandDispatcher.executeOnNode(...) and submitOnNode(...) is used to execute a given command on a given member of the cluster. However, if the target member does not have an active CommandDispatcher to receive the command, the resulting NoSuchService response is not handled, and the caller will receive a ClassCastException. This is because the RspFilter contained in the RspOptions as passed to the MessageDispatcher is not invoked for unicast requests.
The API will likely need to be adjusted/documented to define what behavior to expect in this scenario.
was:
CommandDispatcher.executeOnNode(...) is used to execute a given command on a given member of the cluster. However, the target member does not have an active CommandDispatcher to receive the command, the resulting behavior is not handled, and the caller receives a ClassCastException. This is because the RspFilter contained in the RspOptions as passed to the MessageDispatcher is not invoked for unicast requests.
The API will likely need to be adjusted/documented to define what behavior to expect in this scenario.
> CommandDispatcher.executeOnNode(...) throws ClassCastException if target node has no corresponding CommandDispatcher
> --------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-10313
> URL: https://issues.jboss.org/browse/WFLY-10313
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 12.0.0.Final
> Reporter: Paul Ferraro
> Assignee: Paul Ferraro
>
> CommandDispatcher.executeOnNode(...) and submitOnNode(...) is used to execute a given command on a given member of the cluster. However, if the target member does not have an active CommandDispatcher to receive the command, the resulting NoSuchService response is not handled, and the caller will receive a ClassCastException. This is because the RspFilter contained in the RspOptions as passed to the MessageDispatcher is not invoked for unicast requests.
> The API will likely need to be adjusted/documented to define what behavior to expect in this scenario.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list