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 193933 - Remote file should not copy entire file in local system.
Summary: Remote file should not copy entire file in local system.
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-30 09:01 UTC by Alexander Simon
Modified: 2011-01-13 07:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump of infinite UI freaze (22.29 KB, text/plain)
2010-12-30 09:01 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2010-12-30 09:01:16 UTC
Created attachment 104618 [details]
Thread dump of infinite UI freaze

Mime resolvers try to read some bytes from remote file to detect file mine type.
Remote file system copy entire file when client getInputStream().
Step to reproduce:
- open remote folder that contains "all_logs" file, file size = 13G
Actual behavior:
- UI freeze.
- there are no possibility to terminate operation except kill IDE
- user file system exhausted
Expected behavior:
- do not copy entire file in case client do not read all file content.
- cache small peace of file on local file system.
Comment 1 Alexander Simon 2011-01-12 15:51:09 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/fae805a4edae

Note 1: Caching of small piece of file on local file system is not implemented.
Comment 2 Quality Engineering 2011-01-13 07:55:42 UTC
Integrated into 'main-golden', will be available in build *201101130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cd0273d92cd6
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #193933 Remote file should not copy entire file in local system.
- add method to partly reading remote file