You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/06/05 14:13:19 UTC

[jira] [Commented] (CLOUDSTACK-2737) [SXM] findHostsForMigration is resulting in an exception when there are no suitable tagged storage pools

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-2737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675850#comment-13675850 ] 

ASF subversion and git services commented on CLOUDSTACK-2737:
-------------------------------------------------------------

Commit 5af702dd907eedd91020af2ee32d55cb3f017d1a in branch refs/heads/master from Devdeep Singh <de...@gmail.com>
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=5af702d ]

CLOUDSTACK-2737: findHostsForMigration is resulting in an exception when there are no suitable tagged storage pools. Instead of a foreach made changes to use a iterator in the loop to avoid ConcurrentModificationException as the host list is being updated inside the loop.

                
> [SXM] findHostsForMigration is resulting in an exception when there are no suitable tagged storage pools
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2737
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2737
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.2.0
>            Reporter: Srikanteswararao Talluri
>            Assignee: Devdeep Singh
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> Steps to reproduce:
> 1. Create a disk offering and Compute offering with storage tags "test"
> 2. deploy a VM using the above created Disk and Compute offering.
> 3. Now, issue findHostsForMigration API for this VM
> http://10.147.38.166:8080/client/api?command=findHostsForMigration&VirtualMachineId=98cd65b6-aaf5-46fc-b5ce-427531ac8f6f&response=json&sessionkey=FWGf3HaYW6HPFgfkkmGQhxDUNUI%3D&_=1369828635745
> 013-05-29 22:51:49,821 ERROR [cloud.api.ApiServer] (catalina-exec-9:null) unhandled exception executing api command: findHostsForMigration
> java.util.ConcurrentModificationException
> 	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:782)
> 	at java.util.ArrayList$Itr.next(ArrayList.java:754)
> 	at com.cloud.server.ManagementServerImpl.listHostsForMigrationOfVM(ManagementServerImpl.java:1219)
> 	at org.apache.cloudstack.api.command.admin.host.FindHostsForMigrationCmd.execute(FindHostsForMigrationCmd.java:76)
> 	at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> 	at com.cloud.api.ApiServer.queueCommand(ApiServer.java:527)
> 	at com.cloud.api.ApiServer.handleRequest(ApiServer.java:370)
> 	at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> 	at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> 	at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> 	at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> 	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> 	at java.lang.Thread.run(Thread.java:679)
> 2013-05-29 22:51:49,825 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null) ===END===  10.252.241.180 -- GET  command=findHostsForMigration&VirtualMachineId=98cd65b6-aaf5-46fc-b5ce-427531ac8f6f&response=json&sessionkey=FWGf3HaYW6HPFgfkkmGQhxDUNUI%3D&_=1369828540362

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira