Xiangyi Zhu created HDFS-16045:
----------------------------------

             Summary: FileSystem.CACHE memory leak
                 Key: HDFS-16045
                 URL: https://issues.apache.org/jira/browse/HDFS-16045
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
    Affects Versions: 3.4.0
            Reporter: Xiangyi Zhu


{code:java}
FileSystem get(final URI uri, final Configuration conf,
 final String user){code}
When the client turns on the cache and uses the above API to specify the user 
to create a Filesystem instance, the cache will be invalid.

The specified user creates a new UGI every time he creates a Filesystem 
instance, and cache compares it according to UGI.
{code:java}
public int hashCode() {
 return (scheme + authority).hashCode() + ugi.hashCode() + (int)unique;
}{code}
Whether you can use username to replace UGI to make a comparison, and whether 
there are other risks.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to