Solution

Solution for the use case.

Recovery Steps

After the client stops writing or the lease expires, the data is persisted to the NameNode. You can perform a manual lease recovery using Step 2. However, you can still read the file.