Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Management » rse links not refreshed properly
rse links not refreshed properly [message #655704] Tue, 22 February 2011 11:29 Go to next message
Martin Tauber is currently offline Martin TauberFriend
Messages: 122
Registered: July 2009
Senior Member
I have the following situation:

1.) I created two "normal" projects in the workspace
2.) For every project in the workspace I created a "linked" folder which
points to a "rse" folder lying on a ssh accesed remote server
3.) Both linked folders have a very simular structure
4.) After exiting and reentering eclipse some of the folders from one of
the servers moved into the folder with the same path on the other server.

Example:

Workspace
/
/project1
/project1/mylink -> server1:/abc
/project2
/project2/mylink -> server2:/abc


Server1
/abc/etc/A
/abc/etc/B
/abc/etc/C

Server2
/abc/etc/D
/abc/etc/E

After reentering the workspace I see the folowing tree in the workspace:

/
/project1
/project1/mylink
/project1/mylink/etc
/project1/mylink/etc/A
/project1/mylink/etc/B
/project1/mylink/etc/C
/project2
/project2/mylink
/project2/mylink/etc
/project2/mylink/etc/E

Refreshing the link in project2 will shortly resolve the problem. But
when I then open the etc directory of project1 it will shorty flicker
(and show D I suppose) and then the directory D is no longer shown in
the etc directory of project2.

Any ideas where I can start debugging? Or has anyone experianced this
before?

P.S. I am not using any selfwritten code it's just an eclipse installation.

Regards
Martin
Re: rse links not refreshed properly [message #655730 is a reply to message #655704] Tue, 22 February 2011 14:06 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hi Martin,

I don't think that any resource can "move" in the workspace. The resource model is independent of RSE and has been rock solid for years.

What's IMO more likely, is that there's a race condition / timing problem: at the time Platform/Resources tries refreshing the workspace, RSE/SSH might not yet be available and throw an exception, thus not showing the resource. After a 2nd refresh the connection is good and stable so you get the resource.

Please check the version of Eclipse Platform you're using. Check your "Refresh on Startup" Preference (I'd recommend turning that off in your case to ensure that refresh occurs late enough). If you want to debug, you could try setting breakpoints in RefreshLocalVisitor, or a Java Exception breakpoint on CoreException, or breakpoints in the RSE EFS provider.

You could also check the RSE EFS provider's RSEFileStoreImpl#equals() method, and see whether there's any caching problem but IMO that's also unlikely.

HTH,
Martin
Re: rse links not refreshed properly [message #655744 is a reply to message #655730] Tue, 22 February 2011 14:38 Go to previous messageGo to next message
Martin Tauber is currently offline Martin TauberFriend
Messages: 122
Registered: July 2009
Senior Member
Hi Martin,

hm - it's a strange behaviour. I can easely reproduce it with my eclipse
installation. Refresh was not turned on. I think I'll start with a fresh
install of everthing to see If it still occurs. BTW. Does the newest
Version of rse contain the ssh cache?

Regards
Martin

Am 22.02.11 15:07, schrieb Martin Oberhuber:
> Hi Martin,
>
> I don't think that any resource can "move" in the workspace. The
> resource model is independent of RSE and has been rock solid for years.
>
> What's IMO more likely, is that there's a race condition / timing
> problem: at the time Platform/Resources tries refreshing the workspace,
> RSE/SSH might not yet be available and throw an exception, thus not
> showing the resource. After a 2nd refresh the connection is good and
> stable so you get the resource.
>
> Please check the version of Eclipse Platform you're using. Check your
> "Refresh on Startup" Preference (I'd recommend turning that off in your
> case to ensure that refresh occurs late enough). If you want to debug,
> you could try setting breakpoints in RefreshLocalVisitor, or a Java
> Exception breakpoint on CoreException, or breakpoints in the RSE EFS
> provider.
>
> You could also check the RSE EFS provider's RSEFileStoreImpl#equals()
> method, and see whether there's any caching problem but IMO that's also
> unlikely.
>
> HTH,
> Martin
Re: rse links not refreshed properly [message #655788 is a reply to message #655744] Tue, 22 February 2011 16:01 Go to previous messageGo to next message
Martin Tauber is currently offline Martin TauberFriend
Messages: 122
Registered: July 2009
Senior Member
Hi Martin,

I'm totally in the dark here .... I reinstalled eclipse (helias SP1 win
32 for rcp) and a fresh download of RSE 3.2.1. and I run into the same
problemes again.

As before I added two projects and two links to rse filesystem folders
which contain tons of files. Both folders have basically different
subfolders except three, which have the same name.

working with eclipse and the two remote filesystems then is fine.

After restarting eclipse if I try to open the second project, I only see
the three folders which are common in both projects.

When I then do a refresh the folders apear. Opening the first project
after that will shortly show me all subfolders of both project, then it
will remove the folders from the second project. Now the first project
looks fine, but opening the second project again, will be trouble, since
now the folders which are not common will be gone again.

if I try to reproduce the problem with folders which don#t have tons of
subfolders, everything works fine.

Any other ideas?

BTW: Once I ran into a stack dump: CoreException "Could not connect to
host abc subsystem ssh.files"

triggered from RWEFileStoreImpl.getConnectedFileSubSystem

....

Am 22.02.11 15:38, schrieb Martin Tauber:
> Hi Martin,
>
> hm - it's a strange behaviour. I can easely reproduce it with my eclipse
> installation. Refresh was not turned on. I think I'll start with a fresh
> install of everthing to see If it still occurs. BTW. Does the newest
> Version of rse contain the ssh cache?
>
> Regards
> Martin
>
> Am 22.02.11 15:07, schrieb Martin Oberhuber:
>> Hi Martin,
>>
>> I don't think that any resource can "move" in the workspace. The
>> resource model is independent of RSE and has been rock solid for years.
>>
>> What's IMO more likely, is that there's a race condition / timing
>> problem: at the time Platform/Resources tries refreshing the workspace,
>> RSE/SSH might not yet be available and throw an exception, thus not
>> showing the resource. After a 2nd refresh the connection is good and
>> stable so you get the resource.
>>
>> Please check the version of Eclipse Platform you're using. Check your
>> "Refresh on Startup" Preference (I'd recommend turning that off in your
>> case to ensure that refresh occurs late enough). If you want to debug,
>> you could try setting breakpoints in RefreshLocalVisitor, or a Java
>> Exception breakpoint on CoreException, or breakpoints in the RSE EFS
>> provider.
>>
>> You could also check the RSE EFS provider's RSEFileStoreImpl#equals()
>> method, and see whether there's any caching problem but IMO that's also
>> unlikely.
>>
>> HTH,
>> Martin
>
Re: rse links not refreshed properly [message #655796 is a reply to message #655730] Tue, 22 February 2011 16:27 Go to previous messageGo to next message
Martin Tauber is currently offline Martin TauberFriend
Messages: 122
Registered: July 2009
Senior Member
Hi Martin,

I think I'm getting closer. I created a link on the first server so that
the OS path is not exactly the same on both servers. I did some short
tests and I'm not seeing the problem anymore.

When I was scanning the source code yesterday I saw that RSEFileStore is
caching instances using the URI, could this be a source for the problem?

Regards
Martin

Am 22.02.11 15:07, schrieb Martin Oberhuber:
> Hi Martin,
>
> I don't think that any resource can "move" in the workspace. The
> resource model is independent of RSE and has been rock solid for years.
>
> What's IMO more likely, is that there's a race condition / timing
> problem: at the time Platform/Resources tries refreshing the workspace,
> RSE/SSH might not yet be available and throw an exception, thus not
> showing the resource. After a 2nd refresh the connection is good and
> stable so you get the resource.
>
> Please check the version of Eclipse Platform you're using. Check your
> "Refresh on Startup" Preference (I'd recommend turning that off in your
> case to ensure that refresh occurs late enough). If you want to debug,
> you could try setting breakpoints in RefreshLocalVisitor, or a Java
> Exception breakpoint on CoreException, or breakpoints in the RSE EFS
> provider.
>
> You could also check the RSE EFS provider's RSEFileStoreImpl#equals()
> method, and see whether there's any caching problem but IMO that's also
> unlikely.
>
> HTH,
> Martin
Re: rse links not refreshed properly [message #655797 is a reply to message #655730] Tue, 22 February 2011 16:31 Go to previous message
Martin Tauber is currently offline Martin TauberFriend
Messages: 122
Registered: July 2009
Senior Member
Hi Martin,

I think I'm getting closer. I created a link on the first server so that
the OS path is not exactly the same on both servers. I did some short
tests and I'm not seeing the problem anymore.

When I was scanning the source code yesterday I saw that RSEFileStore is
caching instances using the URI, could this be a source for the problem?

Regards
Martin

Am 22.02.11 15:07, schrieb Martin Oberhuber:
> Hi Martin,
>
> I don't think that any resource can "move" in the workspace. The
> resource model is independent of RSE and has been rock solid for years.
>
> What's IMO more likely, is that there's a race condition / timing
> problem: at the time Platform/Resources tries refreshing the workspace,
> RSE/SSH might not yet be available and throw an exception, thus not
> showing the resource. After a 2nd refresh the connection is good and
> stable so you get the resource.
>
> Please check the version of Eclipse Platform you're using. Check your
> "Refresh on Startup" Preference (I'd recommend turning that off in your
> case to ensure that refresh occurs late enough). If you want to debug,
> you could try setting breakpoints in RefreshLocalVisitor, or a Java
> Exception breakpoint on CoreException, or breakpoints in the RSE EFS
> provider.
>
> You could also check the RSE EFS provider's RSEFileStoreImpl#equals()
> method, and see whether there's any caching problem but IMO that's also
> unlikely.
>
> HTH,
> Martin
Previous Topic:Extending dstore server launcher?
Next Topic:RSE services API concurrency ...
Goto Forum:
  


Current Time: Wed Apr 24 17:16:38 GMT 2024

Powered by FUDForum. Page generated in 0.03249 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top