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 248802 - 'Rename' in remote Favorites tab generates tons of FileNotFoundExceptions
Summary: 'Rename' in remote Favorites tab generates tons of FileNotFoundExceptions
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.0.2
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
: 248753 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-21 14:19 UTC by soldatov
Modified: 2015-02-25 11:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (959.85 KB, text/plain)
2014-11-21 14:25 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2014-11-21 14:19:12 UTC
I renamed remote folder with 6 files only

bash-4.1$ cat /var/tmp/sova_nb/var/log/messages.log | grep "Can't download file" | sort | uniq -c
    104 Can't download file user@host:/var/tmp/sova_files/src/c++11/std_list/std_list_2/file.fff.aaa.pass:
    112 Can't download file user@host:/var/tmp/sova_files/src/c++11/std_list/std_list_2/file.fff.bbb.pass:
    104 Caused: java.io.FileNotFoundException: Can't download file user@host:/var/tmp/sova_files/src/c++11/std_list/std_list_2/file.fff.aaa.pass:
    112 Caused: java.io.FileNotFoundException: Can't download file user@host:/var/tmp/sova_files/src/c++11/std_list/std_list_2/file.fff.bbb.pass:
    104 Caused: java.io.IOException: Can't download file user@host:/var/tmp/sova_files/src/c++11/std_list/std_list_2/file.fff.aaa.pass:
    112 Caused: java.io.IOException: Can't download file user@host:/var/tmp/sova_files/src/c++11/std_list/std_list_2/file.fff.bbb.pass:

Scenario:
- Save script in order to generate folder with 6 files:
#!/bin/sh

mkdir -p ./src/c++11/std_list/std_list_2/
touch ./src/c++11/std_list/std_list_2/files.cfg
touch ./src/c++11/std_list/std_list_2/file.fff.aaa.pass
touch ./src/c++11/std_list/std_list_2/file.fff.in
touch ./src/c++11/std_list/std_list_2/file.cc
touch ./src/c++11/std_list/std_list_2/file.fff.bbb.pass
touch ./src/c++11/std_list/std_list_2/file.fff.pass

- Launch script on remote computer
- Launch NetBeans 8.0.2
- Add this new remote folder to Favorites tab
- Select std_list_2 node
- Press F2
- Type std_zzzlist_2 and press Enter
==>  I see tons of FileNotFoundException in messages.log
Comment 1 soldatov 2014-11-21 14:25:07 UTC
Created attachment 150608 [details]
messages.log
Comment 2 soldatov 2014-11-21 14:31:24 UTC
I filed P1 because:
- bug should be evaluated
- I think It is a regression in patch 2
- I think this bug generates big delays if someone uses Rename in real code base
Comment 3 soldatov 2014-11-21 15:16:03 UTC
Downgrade to P2. I can reproduce this problem with more old NetBeans 8.0 builds
Comment 4 Vladimir Kvashin 2014-11-21 20:08:40 UTC
I wasn't able to reproduce this so far. I'll try once more tomorrow.
Comment 5 soldatov 2014-11-21 20:34:18 UTC
I checked this bug on USA host, Russia host and virtual host on my machine. In all cases I see stable bug.

I think all steps are important:
- files tree is not cached. If I expanded deepest remote folder I don't see any exceptions. Better steps: start IDE with new --userdir, expand ./src/c++11/std_list folder only
- my file paths should be used. I think '+' is 'bad' sign.
Comment 6 Vladimir Kvashin 2014-12-02 19:45:51 UTC
I was finally able to reproduce this with fresh userdir and without expanding the tree too much.
Comment 8 Vladimir Kvashin 2014-12-03 15:52:23 UTC
*** Bug 248753 has been marked as a duplicate of this bug. ***
Comment 9 Quality Engineering 2014-12-04 04:18:43 UTC
Integrated into 'main-silver', will be available in build *201412040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/25b22589c172
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: test for #248802 - 'Rename' in remote Favorites tab generates tons of FileNotFoundExceptions
Comment 10 ilia 2015-01-19 10:42:06 UTC
Changing whiteboard to 802patch1-fixed because the changesets are already in releases~release801
Comment 11 soldatov 2015-02-24 09:47:49 UTC
verified in trunk

>System Info: 
  Product Version         = NetBeans IDE Dev (Build 201502240532) (#d6aa48dbbbfb)
Comment 12 soldatov 2015-02-25 11:23:12 UTC
verified in NetBeans IDE 8.0.2 (Build 201502242207)