deepujain opened a new pull request, #8304:
URL: https://github.com/apache/hadoop/pull/8304

   ## HADOOP-19826. Add contract test to verify renaming empty dir works
   
   ### Summary
   
   Adds a contract test `testRenameEmptyDir` in `AbstractContractRenameTest` 
that verifies filesystems correctly support renaming an empty directory to a 
new path: create an empty directory, rename it to a new path, assert rename 
returns true and the directory exists at the destination and no longer at the 
source.
   
   ### Change
   
   - **File:** 
`hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/contract/AbstractContractRenameTest.java`
   - New test method `testRenameEmptyDir()`: creates an empty dir under 
`testRenameEmptyDir/src`, renames it to `testRenameEmptyDir/dest`, asserts 
`rename()` returns true, destination is a directory, and source path does not 
exist.
   
   ### JIRA
   
   Fixes HADOOP-19826
   


-- 
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