Bug 164118 - [updating][dstore] RSE Tree gets empty after moving file back and forth
Summary: [updating][dstore] RSE Tree gets empty after moving file back and forth
Status: RESOLVED WORKSFORME
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: David McKnight CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 190001
  Show dependency tree
 
Reported: 2006-11-10 09:40 EST by Martin Oberhuber CLA
Modified: 2008-08-13 13:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2006-11-10 09:40:03 EST
Connect to a remote dstore-unix server (already running).
Select file "My Home"/test.txt.
Choose right-click > Move, destination = "My Home"/aatmp/test
Now select the file in "My Home"/aatmp/test
Choose right-click > Move

* Bug #1: In the "Move destination" dialog, below "My Home" I only see "Empty List".
* After chooseing "My Home" the RSE Tree shows "Empty List" below My Home.

Pressing Refresh fixes the display again.
One reason for this bug might be that I have lots of files and directories in My Home -- Currently about 60 directories and 70 files.

-----------Enter bugs above this line-----------
RSE 1.0 Release Test
installation : eclipse-platform-3.3M3
RSE install  : update-site RSE-complete
java.runtime : Sun 1.5.0_08-b03
os.name:     : Windows XP 5.1, Service Pack 1
------------------------------------------------
systemtype   : Windows-local, Dstore-win, Dstore-linux
targetos     : Red Hat Enterprise Linux WS release 4 (Nahant Update 3)
targetuname  : Linux parser 2.6.9-34.EL #1 i686 athlon i386 GNU/Linux
targetvm     : Sun Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)
------------------------------------------------
Comment 1 Martin Oberhuber CLA 2006-11-10 09:46:28 EST
Reproduced the same issue on a Solaris-motif client with Linux-dstore server.
Assume this applies to all client platforms.
Comment 2 David McKnight CLA 2006-11-24 12:36:53 EST
I haven't been able to reproduce this.  Are you still able to?
Comment 3 Martin Oberhuber CLA 2006-11-27 06:59:58 EST
Reproduced with Windows XP client, running in Debug mode out of my CVS HEAD workspace as of Nov.27.
Server was a dstore "already running" as of N20061124-1100 on Solaris.

* Select file "My Home"/test.txt.
* Choose right-click > Move, destination = "My Home"/aatmp/test
* Now select the file in "My Home"/aatmp/test
* Choose right-click > Move

--> In the "Move Destination" dialog, below "My Home" I see "Empty List" twice.

Perhaps this issue is related to the size of my home directory. The "My Home" folder on this machine contains 121 children (about 40 folders and 80 files).
Comment 4 David McKnight CLA 2006-11-27 11:44:28 EST
Have you been able to reproduce it with a smaller directory?  Does it behave differently if you use the daemon or REXEC to start the server?
Comment 5 David McKnight CLA 2006-11-27 16:48:51 EST
Scratch my last comment.  I've been able to reproduce this in certain scenarios.
Comment 6 David McKnight CLA 2006-11-29 12:52:01 EST
This appears to be fixed now as a result of the fix to 163381.  I can't be sure because I was only able to reproduce this intermittantly.  In your scenario did you happen to have 2 connections to the same host (because that is key to the problem in 163381)?
Comment 7 Martin Oberhuber CLA 2006-11-29 13:28:24 EST
Sorry but this didn't do the trick. With your changes applied, the problem still occurs. I have a single connection to a single dstore host [plus the local connection].

Comment 8 Martin Oberhuber CLA 2006-11-29 13:29:47 EST
I think it might have something to do with refreshing.

When I just tested, I saw the "Empty Folder" item below "My Home" even on the INITIAL try to move from aatmp/test to My Home -- intially after starting RSE and connecting. After manually refreshing "My Home" the problem went away, but was reproducable again when moving from My HOme to aatmp/test.
Comment 9 David McKnight CLA 2006-11-29 14:12:31 EST
Well, what appears to happen (from my investigations) is the following:
-one query starts
-then somehow another gets kicked off at the same time
-while the first one waits for a response, the second query job ends up implicitly cancelling the first query job (I guess because Eclipse doesn't want concurrent jobs acting on the same resource)
-the cancel ends up making the results for the initial query null, and then the 2nd query assumes the empty set is the cached result (for the 2nd query)
Comment 10 Martin Oberhuber CLA 2006-12-01 06:14:01 EST
This might be related to bug 166345.
Comment 11 David McKnight CLA 2006-12-06 10:47:28 EST
I've made a change in DstoreStatusMonitor to check the "done" status before the monitor cancelled check.  This should make this scenario less likely to occur, although not impossible.  Can you see whether this makes a difference for you?
Comment 12 Rupen Mardirossian CLA 2007-05-30 15:04:38 EDT
I've tried numerous things to try and reproduce the bug but I couldn't get it to pull up an "Empty List" below "My Home".  I used a dstore-linux remote connection and moved the file back and forth.  Also made numerous other files and moved them around amongst other folders.  I also tried opening another connection to the same host to see if that would produce the error but with no luck.  Is there something that I am missing?  

-----------Enter bugs above this line-----------
TM 2.0M7 Testing
installation : eclipse-SDK-3.3M7 
RSE install  : RSE-SDK-RC1
java.runtime : Sun 1.5.0_06-b05
os.name:     : Windows XP 5.1, Service Pack 2
------------------------------------------------
Comment 13 Martin Oberhuber CLA 2007-05-30 16:10:37 EDT
This might be fixed due to the workaround mentioned in bug #182574 comment 7, which should be reviewed again later as per bug #190001.

Right now, I cannot try and reproduce due to critical issue bug #190013.
Comment 14 David McKnight CLA 2007-06-05 14:05:00 EDT
Martin, is this one still an issue for you?
Comment 15 Martin Oberhuber CLA 2007-06-05 18:28:22 EDT
With 2.0RC2, I cannot reproduce this any more on either linux-gtk-x86_64 or win32 clients against the dstore unix server. Thanks!
Comment 16 David McKnight CLA 2007-06-05 18:45:00 EDT
Marking this as worksforme.
Comment 17 Martin Oberhuber CLA 2008-08-13 13:20:13 EDT
[target cleanup] 2.0 RC2 was the original target milestone for this bug