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.
Summary: | Tests can't add remote host, because "New Remote Host Setup" wizard fails | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Remote | Assignee: | Vladimir Kvashin <vkvashin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Fix prototype |
Description
soldatov
2016-08-26 12:13:10 UTC
I think that's a problem of this host. Try ls -l / on this host I tried... and it still hangs. Also the message is printed NFS server scar.xx.xxxxxxx.com not responding still trying truss -p `pgrep fs_server` shows that it waits forever on /5: lstat("//ws", 0xFFFF80FFBED7DBA8) (sleeping...) I pushed some fixes in cnd-main http://hg.netbeans.org/cnd-main/rev/7eafd312d615 http://hg.netbeans.org/cnd-main/rev/fa913fdab592 http://hg.netbeans.org/cnd-main/rev/005a7aea262a http://hg.netbeans.org/cnd-main/rev/e5031299abcf The fixes above are mostly aimed on use of timed waiting instead of waiting forever. I wasn't able to switch of calling lstat on /ws so far. Doing so requires changes in fs_server binary. I'm planning to do this shortly, but this is definitely not for today. Unfortunately it is not possible to solve via ignoring directories on client side, since it's call to "ls /" that makes fs_server hang forever. Created attachment 161786 [details]
Fix prototype
Issues to be solved prior than pushing the fix:
1) Lack of synchronization with determining mount points
2) In fs_server is_dir_forbidden_to_stat uses mutex, which will definitely lead to too much concurrency between threads.
Integrated into 'main-silver', will be available in build *201608280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7eafd312d615 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixing #267715 (Tests can't add remote host, because "New Remote Host Setup" wizard fails). Step 1, don't wait forever, always set (a long) timeout (by default 60-seconds; can be set via -J-Dremote.fs_server.default.timeout) Integrated into 'main-silver', will be available in build *201608290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/005a7aea262a User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixing #267715 (Tests can't add remote host, because "New Remote Host Setup" wizard fails). Step 3, proper exception handling Should be fixed by http://hg.netbeans.org/cnd-main/rev/f579585d35b5 http://hg.netbeans.org/cnd-main/rev/dd77f200fad6 http://hg.netbeans.org/cnd-main/rev/ce0d43a64a1a http://hg.netbeans.org/cnd-main/rev/226b15bb6d23 http://hg.netbeans.org/cnd-main/rev/36d2e96e865d Integrated into 'main-silver', will be available in build *201609040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f579585d35b5 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: Fixing #267715 (Tests can't add remote host, because "New Remote Host Setup" wizard fails): native code changes |