You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Chung En Lee (Jira)" <ji...@apache.org> on 2023/02/10 09:24:00 UTC

[jira] [Assigned] (HDDS-7168) Prevent writes to keys that start with ".snapshot"

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

Chung En Lee reassigned HDDS-7168:
----------------------------------

    Assignee:     (was: Chung En Lee)

> Prevent writes to keys that start with ".snapshot"
> --------------------------------------------------
>
>                 Key: HDDS-7168
>                 URL: https://issues.apache.org/jira/browse/HDDS-7168
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: George Jahad
>            Priority: Major
>
> The snapshot design defines a key prefix for use with snapshots: ".snapshot/snapshotName".  Any read of a key with that prefix should be be read from the corresponding snapshot.
> But nothing currently prevents key writes from inadvertenly using that prefix, and if they do, they will not be readable.
> To prevent user confusion, we should disallow them from writing any keys with the ".snapshot" prefix.
> One possible approach would be to add a preExecute method to the OMKeyRequest class, (which is a parent of  the key write commands.)  That method would check the key and throw an invalid key error if needed.  (OMKeyRequest would likely need to add an abstract method that each of the specific write classes would need to implement.)



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