You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/10/27 09:06:21 UTC

[GitHub] [ozone] siddhantsangwan opened a new pull request #2776: HDDS-5901. Delete on volume/bucket throws fatal error on ofs

siddhantsangwan opened a new pull request #2776:
URL: https://github.com/apache/ozone/pull/2776


   ## What changes were proposed in this pull request?
   
   Recursive delete `ozone fs -rm -R ofs://ozone1/absdf`
   on a volume or bucket gives the following fatal error as no trash is configured at root level.
   
   > -rm: Fatal internal error
   > java.lang.RuntimeException: Volume or bucket doesn't have trash root.
   > 	at org.apache.hadoop.ozone.OFSPath.getTrashRoot(OFSPath.java:298)
   > 	at org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.getTrashRoot(BasicRootedOzoneFileSystem.java:727)
   > 	at org.apache.hadoop.fs.TrashPolicyDefault.moveToTrash(TrashPolicyDefault.java:134)
   > 	at org.apache.hadoop.fs.Trash.moveToTrash(Trash.java:110)
   > 	at org.apache.hadoop.fs.Trash.moveToAppropriateTrash(Trash.java:96)
   > 	at org.apache.hadoop.fs.shell.Delete$Rm.moveToTrash(Delete.java:153)
   > 	at org.apache.hadoop.fs.shell.Delete$Rm.processPath(Delete.java:118)
   > 	at org.apache.hadoop.fs.shell.Command.processPathInternal(Command.java:367)
   > 	at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:331)
   > 	at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:304)
   > 	at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:286)
   > 	at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:270)
   > 	at org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:120)
   > 	at org.apache.hadoop.fs.shell.Command.run(Command.java:177)
   > 	at org.apache.hadoop.fs.FsShell.run(FsShell.java:328)
   > 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
   > 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
   > 	at org.apache.hadoop.fs.ozone.OzoneFsShell.main(OzoneFsShell.java:81)
   > 
   > 
   
   This patch changes the Fatal error message: 
   
   > Volume or bucket doesn't have trash root.
   
   to something a bit more user friendly:
   
   > Recursive rm of volume or bucket with trash enabled is not permitted. Consider using the -skipTrash option. 
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-5901#
   
   ## How was this patch tested?
   
   Manual testing using Docker compose.


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] siddhantsangwan commented on pull request #2776: HDDS-5901. Delete on volume/bucket throws fatal error on ofs

Posted by GitBox <gi...@apache.org>.
siddhantsangwan commented on pull request #2776:
URL: https://github.com/apache/ozone/pull/2776#issuecomment-952862390


   @sadanand48 Please take a look.


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] mukul1987 merged pull request #2776: HDDS-5901. Delete on volume/bucket throws fatal error on ofs

Posted by GitBox <gi...@apache.org>.
mukul1987 merged pull request #2776:
URL: https://github.com/apache/ozone/pull/2776


   


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org