Community
Participate
Working Groups
Create a profile and a connection for that profile. Delete the profile. The profile is deleted, but 1 second later it is recreated without the connections. If you restart the profile is back without the connections. Steps to Reproduce: 1. Create a new profile. 2. Create a connection for that profile. 3. Delete the profile. --> If you are watching .metadata\.plugins\org.eclipse.rse.core\profiles you will see it is removed. Wait a second and it is back, without the connection. 4. Restart. --> Profile is back without the connection -----------Enter bugs above this line----------- TM 2.0.1 Testing installation : eclipse-SDK-3.3 RSE install : Dev Driver - java.runtime : Sun 1.5.0_11-b03 os.name: : Windows XP, Service Pack 2 ------------------------------------------------
This is happening because in SystemRegistry.deleteSystemProfile(ISystemProfile) we are calling SystemRegistry.deleteHost(IHost) for each connection in the profile. SystemRegistry.deleteHost(IHost) calls SystemHostPool.deleteHost(IHost) which calls a commit on the profile, so a job is scheduled for the save. A little farther down in SystemRegistry.deleteSystemProfile(ISystemProfile) we call getSystemProfileManager().deleteSystemProfile(profile, true); which schedules a delete job. I put a breakpoint in the 2 jobs and the Delete job is run first and then the commit job. That is why the profile is deleted and then comes back.
Created attachment 78383 [details] Adds a Quiesce state to System Profiles Legal Message: I, Kevin Doyle, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer, IBM Canada Ltd. to make this contribution under the EPL.
Added API to suspend and resume profiles (same as the quiesce concept talked about above) ISystemProfile @noimplement public void suspend() public void resume() public boolean isSuspended();
Verified Fixed with 3.0RC2.
Comment on attachment 78383 [details] Adds a Quiesce state to System Profiles Patch is obsolete since this was fixed differently as per comment 3.