[
https://issues.apache.org/jira/browse/HDDS-10858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17926310#comment-17926310
]
Sadanand Shenoy commented on HDDS-10858:
----------------------------------------
The behaviour is not reproducible currently
{code:java}
bash-5.1$ ozone fs -ls ofs://om/vol1/buck1
bash-5.1$ ozone fs -mkdir ofs://om/vol1/buck1/.snapshot
mkdir: `ofs://om/vol1/buck1/.snapshot': File exists
bash-5.1$ ozone fs -mkdir ofs://om/vol1/buck1/.snapshot
mkdir: `ofs://om/vol1/buck1/.snapshot': File exist {code}
> [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: [email protected]
For additional commands, e-mail: [email protected]