Thread: JDeveloper Mysteriously Deleting files


Permlink Replies: 68 - Pages: 5 [ Previous | 1 2 3 4 5 | Next ] - Last Post: Jun 3, 2006 10:42 AM Last Post By: Surya De
brian.duff@orac...

Posts: 1,385
Registered: 01/10/01
Re: JDeveloper Mysteriously Deleting files
Posted: May 10, 2006 12:50 AM   in response to: Surya De in response to: Surya De
Click to report abuse...   Click to reply to this thread Reply
Hi,

SU 3 is currently gated on two things:

1) Checking in a fix for this bug. We've checked in a fix to the 10.1.3 line that stops the incorrect file deletion from happening and dumps state when it would otherwise have occurred in the local history code. A bunch of us spent the last two days carefully auditing the local history code to try to find the bug and a solution that will also fix the underlying problem. We're doing this somewhat speculatively, because we're still unable to reproduce the bug at will (although we've verified that there are a number of problems in the implementation of local history, and one internal user has also run into the "random" deletion issue and provided us with a stack trace and other detailed diagnostic information clearly implicating local history).

2) QA testing. For SU3, we're planning to simultaneously update the 10.1.3 production zips to include the SU3 fixes so that new users get all of the SU3 fixes when they download the product for the first time. This involves a bit more preparation and testing than usual.

The update should be available soon.

Thanks,
Brian
brian.duff@orac...

Posts: 1,385
Registered: 01/10/01
Re: JDeveloper Mysteriously Deleting files
Posted: May 10, 2006 12:51 AM   in response to: Jerrek in response to: Jerrek
Click to report abuse...   Click to reply to this thread Reply
Hi Jerrek,

Thanks for the info. Given the symptoms I'm seeing, that is a plausible reason for running into the problem also.

Brian
tullio0106

Posts: 1,881
Registered: 11/14/00
Re: JDeveloper Mysteriously Deleting files
Posted: May 10, 2006 12:55 AM   in response to: brian.duff@orac... in response to: brian.duff@orac...
Click to report abuse...   Click to reply to this thread Reply
My files are on the sam disk (windows, I've just one disk).
I switched off local history 2 days ago but I missed 2 files after that switch.
To be more precise I noticed I missed 2 files after that switch.
I'll keep You informed.
Tks
Tullio
brian.duff@orac...

Posts: 1,385
Registered: 01/10/01
Re: JDeveloper Mysteriously Deleting files
Posted: May 10, 2006 1:00 AM   in response to: tullio0106 in response to: tullio0106
Click to report abuse...   Click to reply to this thread Reply
Hi Tuillo,

We'd definitely be interested in knowing for sure if those deletions happened before or after you switched off local history... as you mentioned, you weren't sure exactly when the deletions actually happened, only when you first noticed them. We strongly believe that local history is responsible for this problem.

Thanks,
Brian
tullio0106

Posts: 1,881
Registered: 11/14/00
Re: JDeveloper Mysteriously Deleting files
Posted: May 10, 2006 1:05 AM   in response to: brian.duff@orac... in response to: brian.duff@orac...
Click to report abuse...   Click to reply to this thread Reply
I don't know exactely when the problem was produced, but only when it appears as "scheduled for removal"
The patch output doesnt't show that deletion.
I can only monitor the system.
Tks
Tullio
brian.duff@orac...

Posts: 1,385
Registered: 01/10/01
Re: JDeveloper Mysteriously Deleting files
Posted: May 10, 2006 1:14 AM   in response to: tullio0106 in response to: tullio0106
Click to report abuse...   Click to reply to this thread Reply
Hi Tullio,

Any attempt to schedule a file for deletion will go via the API that causes the patch to log a message. If you see an unexpected delete scheduled file and no corresponding diagnostic output (as above), then probably the deletion happened during a previous jdev session.

Thanks,
Brian
Surya De

Posts: 312
Registered: 04/24/06
Re: JDeveloper Mysteriously Deleting files
Posted: May 10, 2006 7:59 AM   in response to: brian.duff@orac... in response to: brian.duff@orac...
Click to report abuse...   Click to reply to this thread Reply
Hi Brian,

Thanks for the very detailed reply. Best of luck to your endeavors. Looking forward to SU3.

Surya
user510533

Posts: 5
Registered: 05/17/06
Re: JDeveloper Mysteriously Deleting files
Posted: May 17, 2006 3:10 PM   in response to: pmanning@newene... in response to: pmanning@newene...
Click to report abuse...   Click to reply to this thread Reply
I'm not sure if this adds anything to this discussion since it seems that, hopefully, the problem will be resolved with the next SU, but here it is anyway.

I've lost three .java files, all at different times. The first disappeared when it was not being edited. The second was open in JDev but that tab did not have focus. When I selected that tab, all the text was gone, but it still had the title of the missing file. The third, which occured a few minutes ago, also happened while the file was open in JDev, but was not the active tab. I selected the tab for the missing file, and all the code was still there. I'm not sure how XP is allowing files that are open (supposedly...not sure what JDev is doing) to be deleted...doesn't seem right.

And thanks to everyone posting on this thread...my co-workers were starting to think I was crazy and/or stupid since they have never had this problem, and I've only been using JDev for a couple of months. I have to say, I was starting to check out Eclipse after this!

Jim
brian.duff@orac...

Posts: 1,385
Registered: 01/10/01
Re: JDeveloper Mysteriously Deleting files
Posted: May 18, 2006 12:00 AM   in response to: user510533 in response to: user510533
Click to report abuse...   Click to reply to this thread Reply
Was Local History enabled when you observed these issues?

FWIW, JDeveloper does not take out a low level OS lock on files when they are open.

Thanks,
Brian
user510533

Posts: 5
Registered: 05/17/06
Re: JDeveloper Mysteriously Deleting files
Posted: May 18, 2006 12:13 AM   in response to: brian.duff@orac... in response to: brian.duff@orac...
Click to report abuse...   Click to reply to this thread Reply
Hi Brian. Yes, Local History was enabled. I found this forum after losing my third file today, and I disabled Local History after reading your recommendations. If I lose another I'll post it here. Thanks for the reply.

Jim
tullio0106

Posts: 1,881
Registered: 11/14/00
Re: JDeveloper Mysteriously Deleting files
Posted: May 19, 2006 8:46 AM   in response to: brian.duff@orac... in response to: brian.duff@orac...
Click to report abuse...   Click to reply to this thread Reply
I can confirm I never loosed any file after I disabled local history.
Will that feature be reenabled in the future ?
Tks
Tullio
jcronemb

Posts: 38
Registered: 01/10/01
Re: JDeveloper Mysteriously Deleting files
Posted: May 19, 2006 10:59 AM   in response to: tullio0106 in response to: tullio0106
Click to report abuse...   Click to reply to this thread Reply
We are currently testing a fix to the local history problem. Once we are sure that it solves the file deletion problem fully, the fix will be included in a Service Update for download through JDeveloper's Update Center.
brian.duff@orac...

Posts: 1,385
Registered: 01/10/01
Re: JDeveloper Mysteriously Deleting files
Posted: May 19, 2006 4:12 PM   in response to: jcronemb in response to: jcronemb
Click to report abuse...   Click to reply to this thread Reply
In Service Update 3 (available now from check for updates), a fix is included that prevents local history from deleting user files. It is safe to reenable local history when SU3 is installed.

The underlying bug in local history means that in certain scenarios, your local history information will become invalid. In Service Update 4, we will include a fix that resolves the underlying bug.

Thanks,
Brian
tullio0106

Posts: 1,881
Registered: 11/14/00
Re: JDeveloper Mysteriously Deleting files
Posted: May 22, 2006 8:08 AM   in response to: brian.duff@orac... in response to: brian.duff@orac...
Click to report abuse...   Click to reply to this thread Reply
I installed SU3 and I reactivated local history.
Should I remove the patch ?
I didn't do that and I got a very very long log.
Tks
Tullio
brian.duff@orac...

Posts: 1,385
Registered: 01/10/01
Re: JDeveloper Mysteriously Deleting files
Posted: May 22, 2006 9:04 PM   in response to: tullio0106 in response to: tullio0106
Click to report abuse...   Click to reply to this thread Reply
Yes, you can remove the diagnostic patch.

Thanks,
Brian
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums