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 "Manoj Govindassamy (JIRA)" <ji...@apache.org> on 2017/07/28 18:03:00 UTC

[jira] [Created] (HDFS-12217) HDFS snapshots doesn't capture all open files when one of open file is deleted

Manoj Govindassamy created HDFS-12217:
-----------------------------------------

             Summary: HDFS snapshots doesn't capture all open files when one of open file is deleted
                 Key: HDFS-12217
                 URL: https://issues.apache.org/jira/browse/HDFS-12217
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: snapshots
    Affects Versions: 3.0.0-alpha1
            Reporter: Manoj Govindassamy
            Assignee: Manoj Govindassamy


With the fix for HDFS-11402, HDFS Snapshots can additionally capture all the open files. Just like all other files, these open files in the snapshots will remain immutable. But, sometimes it is found that snapshots fail to capture all the open files in the system.

Under the following conditions, LeaseManager will fail to find INode corresponding to an active lease 
-- file is opened for writing (LeaseManager allots a lease)
-- files is deleted while it is still open for writing and active lease
-- file is not referenced in any other Snapshots/Trash

{{INode[] LeaseManager#getINodesWithLease()}} can thus return null for few leases there by causing the caller to trip over and not return all the open files needed by the snapshot manager.





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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