[ 
https://issues.apache.org/jira/browse/HDFS-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439043#comment-13439043
 ] 

Colin Patrick McCabe commented on HDFS-3830:
--------------------------------------------

I tested the patch by running test_libhdfs_threaded.  Before doing so, I added 
the jars from share/hadoop/hdfs and share/hadoop/common to my CLASSPATH.  (I am 
working with the tarball layout here.)

Without this patch, the test fails intermittently.  The failure mode that I saw 
was an exception from one thread about the FileSystem being closed (because 
someone closed FileSystem shared by all threads, and it doesn't 
reference-count.)
                
> test_libhdfs_threaded: use forceNewInstance
> -------------------------------------------
>
>                 Key: HDFS-3830
>                 URL: https://issues.apache.org/jira/browse/HDFS-3830
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: libhdfs
>    Affects Versions: 2.2.0-alpha
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>            Priority: Minor
>         Attachments: HDFS-3830.001.patch
>
>
> test_libhdfs_threaded should create new FileSystem instances with 
> newInstance, to make sure that the test doesn't break because of interference 
> between the different threads.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to