hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhe Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10458) getFileEncryptionInfo should return quickly for non-encrypted cluster
Date Wed, 25 May 2016 04:54:12 GMT
Zhe Zhang created HDFS-10458:

             Summary: getFileEncryptionInfo should return quickly for non-encrypted cluster
                 Key: HDFS-10458
                 URL: https://issues.apache.org/jira/browse/HDFS-10458
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 2.6.0
            Reporter: Zhe Zhang
            Assignee: Zhe Zhang

{{FSDirectory#getFileEncryptionInfo}} always acquires {{readLock}} and checks if the path
belongs to an EZ. For a busy system with potentially many listing operations, this could cause
locking contention.

I think we should add a call {{EncryptionZoneManager#hasEncryptionZone()}} to return whether
the system has any EZ. If no EZ at all, {{getFileEncryptionInfo}} should return null without

If {{hasEncryptionZone}} is only used in the above scenario, maybe itself doesn't need a {{readLock}}
-- if the system doesn't have any EZ when {{getFileEncryptionInfo}} is called on a path, it
means the path cannot be encrypted.

This message was sent by Atlassian JIRA

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

View raw message