Support Questions
Find answers, ask questions, and share your expertise

How HDFS handle disk full when creating a new snapshot

Explorer

Hi all,

 
Now we can create snapshots on the HDFS directory. I am curious how HDFS handle the disk full error when creating a new snapshot. I guess there are two options
1: Report IODiskFull exception during creating new snapshot.
2: Automatically delete the oldest file or snapshot files, then create the new snapshot successfully.
 
By the way, how HDFS handle the disk full error when putting new files to HDFS?
 
Thanks,
Jack Chen