anuragp010 opened a new pull request, #10707:
URL: https://github.com/apache/ozone/pull/10707

   
   
   ## What changes were proposed in this pull request?
   The current behaviour of `ozone sh key get /path/to/key localFile` when 
reading from the key fails with an IOException or RuntimeException, results in 
an empty file, `localFile`, being created. This file doesn't contain any data 
and can be deleted. 
   
   This PR ensures the empty file created in the above scenario is deleted.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-14759
   
   ## How was this patch tested?
   Made with Claude Code.
   
   1. Newly added Unit Tests.
   
   2. Functional Validation:
   
   Success Scenario:
   <img width="795" height="186" alt="Screenshot 2026-07-09 at 7 29 51 PM" 
src="https://github.com/user-attachments/assets/04afeb78-0448-45c4-9f65-ee098c42b175";
 />
   
   Failure Scenario:
   <img width="1275" height="221" alt="Screenshot 2026-07-09 at 7 30 16 PM" 
src="https://github.com/user-attachments/assets/c3d311fd-6c11-4b93-b42d-d48f008215ac";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to