You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ivan Andika (Jira)" <ji...@apache.org> on 2025/10/19 02:42:00 UTC
[jira] [Commented] (HDDS-13806) Files are moved to different trash root when deleted through s3a://
[ https://issues.apache.org/jira/browse/HDDS-13806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18030904#comment-18030904 ]
Ivan Andika commented on HDDS-13806:
------------------------------------
TrashOzoneFileSystem#getTrashRoots should support Ozone, S3A, and currently Hadoop trash.
The mix of s3a and ofs trash behavior can cause an additional issues where if a single user moves a file to a trash using s3a, and then another user tries to delete the keys under s3a trash directory using ofs, the files might be moved to ofs trash instead of being permanently deleted.
> Files are moved to different trash root when deleted through s3a://
> -------------------------------------------------------------------
>
> Key: HDDS-13806
> URL: https://issues.apache.org/jira/browse/HDDS-13806
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Sammi Chen
> Priority: Major
>
> When trash is enabled and user deletes a Ozone file through s3a:// schema, the file will be moved to HDFS default trash root, instead of Ozone default trash root. Since the trash deletion thread in Ozone only checks Ozone default trash root, so these files deleted through s3a:// will never get a chance to be deleted.
> HDFS trash behaivor:
> * For unencrypted files, the HDFS trash root is typically located in the user's home directory under /user/<username>/.Trash, where deleted files are moved to /user/<username>/.Trash/Current/OriginalPath.
> * For encrypted files, the trash root is within the encryption zone's root directory at /EncryptionZoneRoot/.Trash, and files are moved to /EncryptionZoneRoot/.Trash/$USER/Current/OriginalPath. The trash can be accessed using hdfs dfs -ls /user/<username>/.Trash or by using a path prefixed with hdfs://
> Ozone trash behavior:
> In Apache Ozone, the default trash location for keys in a File System Optimized (FSO) bucket is within the bucket itself. The specific path is:/<volume>/<bucket>/.Trash/<user>, where deleted files are moved to /<volume>/<bucket>/.Trash/<user>/Current/OriginalPath
> The problem is found by [~chenxi]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org