Bug 34577 - eclipse gets insane when renaming .jar file that is used in project.
Summary: eclipse gets insane when renaming .jar file that is used in project.
Status: RESOLVED DUPLICATE of bug 78099
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2003-03-11 06:21 EST by Jörg Hohwiller CLA
Modified: 2004-11-08 16:26 EST (History)
1 user (show)

See Also:


Attachments
Log file (579.47 KB, text/plain)
2003-03-14 08:56 EST, Erich Gamma CLA
no flags Details
full log file (66.42 KB, application/octet-stream)
2003-03-18 18:40 EST, Erich Gamma CLA
no flags Details
borken index store (17.00 KB, application/octet-stream)
2003-03-20 04:20 EST, Jörg Hohwiller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Hohwiller CLA 2003-03-11 06:21:16 EST
Hi! I renamed a JAR file in the local filesystem while eclise was running.
Then I realized, that this JAR was used in a Project. Next I could not
open the properties of that project to fix the problem but got the error:

Unable to create the selected property page.
Reasons:
Plugin-in org.eclipse.jdt.ui was unable to load class
org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage.

I tried to refresh and rebuild the project. Then I realized, that I could
not even close my eclipse workbench - File>Exit or click on X has no effect.

Regards
Comment 1 Erich Gamma CLA 2003-03-11 11:45:06 EST
Can you please attach the full .log file contents.
Comment 2 Erich Gamma CLA 2003-03-12 05:46:17 EST
need to investigate
Comment 3 Erich Gamma CLA 2003-03-14 08:56:08 EST
Created attachment 4131 [details]
Log file
Comment 4 Erich Gamma CLA 2003-03-14 09:00:31 EST
>Then I realized, that this JAR was used in a Project.
this comment isn't clear, but I suspect that the JAR was used by the running 
Eclipse. So this has destroyed the installation and there error messages are a 
consequence of this one.

The log shows only errors related to the index store. Moving to platform core 
to check whether this error condition needs to be handled more gracefully.
Comment 5 John Arthorne CLA 2003-03-14 10:44:56 EST
Jorg, can you clarify your comment?  Did you rename a JAR file that was being
used by eclipse, or did you rename a JAR file used by one of the projects in
your workspace?  If it was an eclipse JAR, which JAR did you rename?

Your log file contents seem unrelated to the error you reported creating the
property page.  Did you start with a fresh workspace after this happened? Were
you able to restart with the old workspace?

Also, what build of Eclipse were you using?
Comment 6 Erich Gamma CLA 2003-03-17 04:29:26 EST
Regarding the log file. As the reporter indicates the log file was huge and 
I've only attached the log from the last session.
Comment 7 John Arthorne CLA 2003-03-17 10:15:02 EST
More comments from the reporter:

> Did you rename a JAR file that was being used by eclipse?

The JAR file was definetly was only used by a project and not by eclipse.
It was in a folder completely outside the eclipse installation folder.

> Were you able to restart with the old workspace?

Well, when I killed the eclipse process and restarted everything
was fine and even the project of call showed up without errors.

> Also, what build of Eclipse were you using?

Build id: 200302061700

> > If you search for the line
> > 
> > !MESSAGE Plug-in org.eclipse.jdt.ui was unable to load class 
> > org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage.
> > 
> > you will get to the interesting information for the described problem.
Comment 8 John Arthorne CLA 2003-03-17 10:19:00 EST
Erich, if you still have the log file, can you attach the section that contains
the error that Jorg mentions?

The attached log file clearly shows corruption of the HistoryStore, and that we
don't recover from that corruption very well.  By looking further back in the
log I'm hoping to discover the source of the corruption.  If you zip the entire
log file it might not be too big to attach here.
Comment 9 Erich Gamma CLA 2003-03-18 18:40:55 EST
Created attachment 4231 [details]
full log file
Comment 10 John Arthorne CLA 2003-03-19 11:52:49 EST
It looks like both the history store and the property store are corrupt in this
workspace.  Furthermore, our attempts to create a new one are failing.  Jorg,
something severe happened to your metadata directory.  Are any of the following
possible?

- checked your .metadata directory into CVS or otherwise transferred it in a way
that could result in file corruption?
- the directory containing metadata was on a network drive that was having
connectivity problems
- out of disk space (or exceeded disk quota)
- lost file write permission in the metadata folder

When the history store is corrupt, we move the index to a backup location and
create a new one.  The log files show that we are failing to create a new store.
 This suggests lack of write access or out of disk space.

We should consider a backup backup plan, whereby we avoid using the history
store at all if we failed to recreate a new one.  Otherwise we're hitting this
failure on every file save or copy, resulting in the 3.7MB log file for a single
day of work.
Comment 11 Jörg Hohwiller CLA 2003-03-20 04:20:15 EST
Created attachment 4255 [details]
borken index store
Comment 12 Jörg Hohwiller CLA 2003-03-20 04:22:39 EST
> It looks like both the history store and the property store are corrupt in 
> this workspace.  Furthermore, our attempts to create a new one are failing.
> Jorg, something severe happened to your metadata directory.  Are any of the
> following possible?

> - checked your .metadata directory into CVS or otherwise transferred it in 
>   a way that could result in file corruption?
no!
> - the directory containing metadata was on a network drive that was having
>   connectivity problems
this might be possible... it is located on a mapped network drive.
> - out of disk space (or exceeded disk quota)
no!
> - lost file write permission in the metadata folder
no!

> When the history store is corrupt, we move the index to a backup location 
> and create a new one.  The log files show that we are failing to create a 
> new store. This suggests lack of write access or out of disk space.

> We should consider a backup backup plan, whereby we avoid using the 
> history store at all if we failed to recreate a new one.  Otherwise we're
> hitting this failure on every file save or copy, resulting in the 3.7MB log
> file for a single day of work.
Yep, the log is about 80MB now.

The history store seems to be a binary file - Now what I actually suppose is
that my history store is broken in a way that the method to create a new one
failes as well. Maybe have a look for bugs in there. I attatched my index store 
file. Now after I deleted the file manually the index-store error does not 
occure in the logfile anymore.
Comment 13 John Arthorne CLA 2003-03-21 12:19:26 EST
Further investigation is needed to determine:

 - how you can get into this corrupt state
 - how to recover correctly

Jorg, thanks for giving all the feedback.  You can delete that 80MB log file now ;)
Comment 14 John Arthorne CLA 2004-11-08 16:26:12 EST

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