You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2025/08/08 21:14:00 UTC

[jira] [Resolved] (HDDS-10858) [snapshot] Error message is not thrown when trying to create '.snapshot' directory the 2nd time

     [ https://issues.apache.org/jira/browse/HDDS-10858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wei-Chiu Chuang resolved HDDS-10858.
------------------------------------
    Resolution: Not A Problem

This is already implemented in TestOMFileCreateRequest.j:sdtestPreExecuteWithInvalidKeyPrefix

> [snapshot] Error message is not thrown when trying to create '.snapshot' directory the 2nd time
> -----------------------------------------------------------------------------------------------
>
>                 Key: HDDS-10858
>                 URL: https://issues.apache.org/jira/browse/HDDS-10858
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Snapshot
>            Reporter: Jyotirmoy Sinha
>            Assignee: Sadanand Shenoy
>            Priority: Major
>              Labels: ozone-snapshot
>
> Error message is not thrown when trying to create '.snapshot' directory the 2nd time
> Steps to reproduce -
> {code:java}
> # ozone fs -mkdir -p ofs://ozone1715615402/vol2/buck7/.snapshot/
> 24/05/14 17:18:42 INFO rpc.RpcClient: Creating Bucket: vol2/buck7, with bucket layout FILE_SYSTEM_OPTIMIZED, om as owner, Versioning false, Storage Type set to DISK and Encryption set to false, Replication Type set to server-side default replication type, Namespace Quota set to -1, Space Quota set to -1
> mkdir: Cannot create key under path reserved for snapshot: .snapshot/
> # echo $?
> 1
> # 
> # 
> # ozone fs -mkdir -p ofs://ozone1715615402/vol2/buck7/.snapshot/
> # echo $?
> 0 {code}



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