You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Viraj Jasani (Jira)" <ji...@apache.org> on 2023/04/04 22:04:00 UTC

[jira] [Created] (HDFS-16973) RBF: MountTableResolver cache size lookup should take read lock

Viraj Jasani created HDFS-16973:
-----------------------------------

             Summary: RBF: MountTableResolver cache size lookup should take read lock
                 Key: HDFS-16973
                 URL: https://issues.apache.org/jira/browse/HDFS-16973
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: Viraj Jasani
            Assignee: Viraj Jasani


Mount table resolver location cache gets invalidated by taking write lock as part of addEntry/removeEntry/refreshEntries calls. Since the write lock exclusively updates the cache, getDestinationForPath already takes read lock before accessing the cache. Similarly, retrieval of the cache size should also take the read lock.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org