This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247664 - remote Favorites: long IDE freezes if file has been deleted from disk
Summary: remote Favorites: long IDE freezes if file has been deleted from disk
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-03 08:58 UTC by soldatov
Modified: 2015-05-15 18:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-10-03 08:58:06 UTC
If file has been deleted from disk (or jsch can't find file), but file can be found in remote Favorites tab. Then user can see long IDE freezes (30-60 seconds).

Now I can't reproduce this bug in Solaris(Russia) -> Solaris(USA) case. But at home (Windows 7(Russia) -> Solaris(USA) case) I saw very stable problem.

In order to generate 400 folders and files I use such shell script:
-bash-4.1$ cat test.sh 
#!/bin/sh

for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do
  for j in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
  do
    mkdir -p root/folder$i/file$j
    touch root/folder$i/file$j/test$j.txt.c
  done
done

Scenario:
- Open Navigator tab
- Expand some remote folder in Favorites tab
- Launch test.sh script on remote machine in external terminal
==> the script finished
- Call 'Refresh Folder' context menu item in Favorites tab
==> 'root' folder appears
- Expand 2-3 folders (for example root/folder1/file1 and folder1/file8)
- Launch 'rm -rf root' in external terminal
==> the command finished

I can see a random long IDE freezes in 3 cases:
1) if I expand new node and files has not icon (IDE checks MIME Type)
2) if I select file in Favorites tab (Navigator should be opened?)
3) double click on file (In this case I see "Do you want to open binary file?" window too)

Also I see a lot of such exceptions:
INFO [nativeexecution.support.logger]: [1820751 ms.] Error Downloading <skipped...>/netbeans_files/folder/root/folder1/file1/test1.txt.in to /var/tmp/sova_ss/var/cache/remote-files/<skipped...>/netbeans_files/folder/root/folder1/file1/test1.txt.in
2: No such file
	at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2629)
	at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:2078)
	at com.jcraft.jsch.ChannelSftp._stat(ChannelSftp.java:2095)
	at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:853)
	at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:813)
	at org.netbeans.modules.nativeexecution.api.util.SftpSupport$Downloader.work(SftpSupport.java:500)
Caused: org.netbeans.modules.nativeexecution.api.util.FileInfoProvider$SftpIOException: No such file
	at org.netbeans.modules.nativeexecution.api.util.SftpSupport.decorateSftpException(SftpSupport.java:200)
	at org.netbeans.modules.nativeexecution.api.util.SftpSupport.access$600(SftpSupport.java:88)
	at org.netbeans.modules.nativeexecution.api.util.SftpSupport$Downloader.work(SftpSupport.java:505)
[catch] at org.netbeans.modules.nativeexecution.api.util.SftpSupport$Downloader.call(SftpSupport.java:450)
	at org.netbeans.modules.nativeexecution.api.util.SftpSupport$Downloader.call(SftpSupport.java:432)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 1 Vladimir Kvashin 2015-02-25 12:37:28 UTC
Does this repeat? I tried to reproduce this but failed. There were lots of changes in remote file system and versioning recnently.
Comment 2 soldatov 2015-02-25 13:05:41 UTC
I will recheck "remote development" feature again on this and next weeks.
Comment 3 Vladimir Kvashin 2015-05-14 15:49:02 UTC
Is there any results of the recheck?
Comment 4 Vladimir Kvashin 2015-05-15 16:16:26 UTC
I think this is gone as result of numerous remote FS fixes
Comment 5 soldatov 2015-05-15 18:24:49 UTC
ok