Bug 346612 - better lock support needed after IDE crash
Summary: better lock support needed after IDE crash
Status: CLOSED DUPLICATE of bug 80734
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.1   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 05:41 EDT by Richard J Moore CLA
Modified: 2011-06-21 16:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard J Moore CLA 2011-05-20 05:41:21 EDT
Build Identifier: BETA 0.5.0

If the IDE crashes, for example network connection dies when accessing the IDE remotely under VNC then workspace/.metadata/.lock is not deleted.  On restarting the IDE the popup appears inviting another workspace to be selected as it is assumed that the current is in use. After a crash, this is clearly not the case.

At the very least there should be help from the IDE to inform the user to delete .lock after a crash.

Even better would be for the IDE to give the user the option of overriding the lock when the popup is displayed.

And even better still is for the IDE to detect that is was not shutdown cleanly i.e to detect that no other instance of the IDE is running so it could only have no shut down cleanly.

Richard

Reproducible: Always

Steps to Reproduce:
1.start the IDE
2.kill the IDE  (eg log off)
3.start the IDE
Comment 1 Prakash Rangaraj CLA 2011-05-20 06:05:39 EDT
(In reply to comment #0)
> Build Identifier: BETA 0.5.0

  What product are you using?
Comment 2 Prakash Rangaraj CLA 2011-06-03 02:05:15 EDT
(In reply to comment #1)
> (In reply to comment #0)
> > Build Identifier: BETA 0.5.0
> 
>   What product are you using?

    Please reopen if you could reproduce it on Eclipse SDK
Comment 3 Richard J Moore CLA 2011-06-09 10:16:57 EDT
The product I am using the the Linux on Power SDK.
Comment 4 Oleg Besedin CLA 2011-06-21 16:25:41 EDT
I think lock behavior was changed around Eclipse 3.3. It should be rather hard to get into situation where a crash would prevent workspace lock from being released. At least that's what I see on Windows . 

I was not able to reproduce the error state on Windows 7.

*** This bug has been marked as a duplicate of bug 80734 ***