Home » Eclipse Projects » Target Management » rse links not refreshed properly
|
Re: rse links not refreshed properly [message #655730 is a reply to message #655704] |
Tue, 22 February 2011 14:06   |
Martin Oberhuber 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   |
Martin Tauber 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   |
Martin Tauber 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   |
Martin Tauber 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  |
Martin Tauber 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
|
|
|
Goto Forum:
Current Time: Mon Dec 11 16:32:58 GMT 2023
Powered by FUDForum. Page generated in 0.02513 seconds
|