I have now fixed member context persistence logic with the following commit revision: f31dc2805026458006567212b968ba7d6c54ca29
Thanks On Mon, Feb 23, 2015 at 10:02 PM, Imesh Gunaratne <[email protected]> wrote: > Yes exactly Raj, I'm now fixing this. > > On Mon, Feb 23, 2015 at 9:58 PM, Rajkumar Rajaratnam <[email protected]> > wrote: > >> Hi Imesh, >> >> Reason is we are adding the member context to cloud controller context >> after everything goes fine. We need to add the member context to the cloud >> controller context as soon as cloud controller gets an instance start up >> call. Otherwise AS and CC would not be in the same state (AS already added >> the member to pending list). I guess we discussed this in some other >> threads. >> >> Now in this scenario, something went wrong while creating containers. So >> CC didn't add it to the cc context. This leads to the above error. >> >> Thanks. >> >> On Mon, Feb 23, 2015 at 9:47 PM, Imesh Gunaratne <[email protected]> >> wrote: >> >>> Hi Devs, >>> >>> I see the below error when terminating a container after an unsuccessful >>> container start process. I'm now looking into this. >>> >>> [2015-02-23 21:12:05,837] ERROR >>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} >>> - Could not terminate instance: [member-id] >>> tomcat-1.tomcat.domain4dd97cbc-0a4d-40f9-b01a-894b3b27d6e8 >>> org.apache.stratos.cloud.controller.exception.InvalidMemberException: >>> Could not terminate instance, member context not found: [member-id] >>> tomcat-1.tomcat.domain4dd97cbc-0a4d-40f9-b01a-894b3b27d6e8 >>> at >>> org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.terminateInstance(CloudControllerServiceImpl.java:554) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:606) >>> at >>> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) >>> at >>> org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) >>> at >>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) >>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >>> at >>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) >>> at >>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) >>> at >>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) >>> >>> >>> -- >>> Imesh Gunaratne >>> >>> Technical Lead, WSO2 >>> Committer & PMC Member, Apache Stratos >>> >> >> >> >> -- >> Rajkumar Rajaratnam >> Committer & PMC Member, Apache Stratos >> Software Engineer, WSO2 >> >> Mobile : +94777568639 >> Blog : rajkumarr.com >> > > > > -- > Imesh Gunaratne > > Technical Lead, WSO2 > Committer & PMC Member, Apache Stratos > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos
