Hi,

Consider the scenario below.

/A/file.txt  in HDFS

1. file.txt size = 0.5*(Size of Block).

2. Take Snapshot on directory A

3. Append to the file.txt, making its size as 0.6*(Size of Block)

4. Remove/delete the snapshot on folder taken in step2.

My Question
--------------------------------
1. How does HDFS handle when it has to decrease the size of block, as above
when we delete the snapshot the block size has to be reduces to its
previous size. This code is handled at datanode or Namnode?

Thank You

Reply via email to