Bug 198661 - [testing] Need a unit test to exercise IFileService streams with multiple threads
Summary: [testing] Need a unit test to exercise IFileService streams with multiple thr...
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-02 08:34 EDT by Martin Oberhuber CLA
Modified: 2012-11-19 04:56 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2007-08-02 08:34:32 EDT
From bug 192610 comment 19 ff:

There may be issues with Eclipse / EFS keeping multiple streams to the remote open in multiple threads -- it could totally hang ftp connections and make other connection types unusable while the streams are still open.

Best would be writing a JUnit test for the scenario mentioned. This could be pretty simple:
  * Get FTPService instance from RSE
  * Create 2 directories, upload 4 files
  * In 4 different threads, getInputStream() and start downloading but do not
    close the streams yet
  * Try performing some list/chdir commands
  * Close the 4 streams one after another with more list/chdir commands
    interspersed

Having such a unit test would be fabulous, and should be applied to the SSH (Sftp) case as well. In fact, such a unit test would be the most important to protect against regressions with the EFS integration.
Comment 1 Martin Oberhuber CLA 2007-08-02 11:00:24 EDT
There is a general, conceptual issue with multiple concurrently open streams to remote resources at the same time.

I have filed bug 198683 to discuss this in a generic (EFS) context.