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

ChenFolin commented on HDFS-4309:
---------------------------------

Hi Aaron T. Myers,
When I execute "dev-support/test-patch.sh patch",that causes many errors,such 
as:
"org.apache.hadoop.record.RecordComparator is deprecated."
and the code is:
{code}
@Deprecated
@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class RecordComparator extends WritableComparator {
{code}

So,"dev-support/test-patch.sh patch" exec failed.And now,how can I do for it?

======================================================================
======================================================================
    Determining number of patched javac warnings.
======================================================================
======================================================================


mvn clean test -DskipTests -DHadoopPatchProcess -Pnative -Ptest-patch > 
/tmp/patchJavacWarnings.txt 2>&1




{color:red}-1 overall{color}.  

    {color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

    {color:green}+1 tests included{color}.  The patch appears to include 1 new 
or modified test files.

    {color:red}-1 javac{color:red}.  The patch appears to cause the build to 
fail.




======================================================================
======================================================================
    Finished build.
======================================================================
======================================================================
                
> Multithreaded get through the Cache FileSystem Object to lead LeaseChecker 
> memory leak
> --------------------------------------------------------------------------------------
>
>                 Key: HDFS-4309
>                 URL: https://issues.apache.org/jira/browse/HDFS-4309
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 0.20.205.0, 0.23.1, 0.23.4, 2.0.1-alpha, 2.0.2-alpha
>            Reporter: MaWenJin
>              Labels: patch
>         Attachments: jmap2.log
>
>   Original Estimate: 204h
>  Remaining Estimate: 204h
>
> If multiple threads concurrently execute the following methods will result in 
> the thread fs = createFileSystem (uri, conf) method is called.And create 
> multiple DFSClient, start at the same time LeaseChecker daemon thread, may 
> not be able to use shutdownhook close it after the process, resulting in a 
> memory leak.
> {code}
> private FileSystem getInternal(URI uri, Configuration conf, Key key) throws 
> IOException{
>       FileSystem fs = null;
>       synchronized (this) {
>         fs = map.get(key);
>       }
>       if (fs != null) {
>         return fs;
>       }
>       //  this is 
>       fs = createFileSystem(uri, conf);
>       synchronized (this) {  // refetch the lock again
>         FileSystem oldfs = map.get(key);
>         if (oldfs != null) { // a file system is created while lock is 
> releasing
>           fs.close(); // close the new file system
>           return oldfs;  // return the old file system
>         }
>         // now insert the new file system into the map
>         if (map.isEmpty() && !clientFinalizer.isAlive()) {
>           Runtime.getRuntime().addShutdownHook(clientFinalizer);
>         }
>         fs.key = key;
>         map.put(key, fs);
>         if (conf.getBoolean("fs.automatic.close", true)) {
>           toAutoClose.add(key);
>         }
>         return fs;
>       }
>     }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to