You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Xiangyi Zhu (Jira)" <ji...@apache.org> on 2021/05/27 10:34:00 UTC
[jira] [Created] (HDFS-16045) FileSystem.CACHE memory leak
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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org