You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Min Chen (JIRA)" <ji...@apache.org> on 2014/09/16 23:02:33 UTC

[jira] [Resolved] (CLOUDSTACK-7563) ClassCastException in VirtualMachineManagerImpl in handling various Agent command answer.

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

Min Chen resolved CLOUDSTACK-7563.
----------------------------------
    Resolution: Fixed

Changed VirtualMachineManagerImpl to use check Answer cast to avoid potential unhandled exception.

> ClassCastException in VirtualMachineManagerImpl in handling various Agent command answer.
> -----------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7563
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7563
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.3.0
>            Reporter: Min Chen
>            Assignee: Min Chen
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> irtualMachineManagerImpl has many methods directly cast the Answer received from AgentManager.send or AgentManager.easySend to the expected Answer class in the normal case. This will throw unhandled  ClassCastException in some unexcepted cases where host is down and agent is disconnected, which will lead to cloud instability.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)