You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Bharat Viswanadham (Jira)" <ji...@apache.org> on 2020/08/26 21:51:00 UTC

[jira] [Updated] (HDDS-4155) Directory and filename can end up with same name

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

Bharat Viswanadham updated HDDS-4155:
-------------------------------------
    Environment:     (was: Scenario:
 # Create key -> /a/b/c
 # CreateDirectory -> /a/b/c
 # CommitKey -> /a/b/c

So, now in Ozone we will have directory and file with name "c"

 
 # InitiateMPU /a/b/c
 # Create Part1 /a/b/c
 # Commit Part1 /a/b/c
 # Create Directory /a/b/c
 # Complete MPU /a/b/c

So, now in Ozone, we will have directory and file with name "c".  In MPU this is one example scenario.

 

Few proposals/ideas to solve this:
 # Check during commit whether a directory already exists with same name. But disadvantage is after user uploads the entire data during last stage we fail.  (File system with create in progress acts similarly. Scenario: 1. vi t1 2. mkdir t1 3. Save t1: (Fail:"t1" is a directory)
 # During create directory check are there any open key creation with same name and fail.

 

Any of the above approaches are not final, this Jira is opened to discuss this issue and come up with solution.

 )

> Directory and filename can end up with same name
> ------------------------------------------------
>
>                 Key: HDDS-4155
>                 URL: https://issues.apache.org/jira/browse/HDDS-4155
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Bharat Viswanadham
>            Priority: Major
>
> Scenario:
>  # Create key -> /a/b/c
>  # CreateDirectory -> /a/b/c
>  # CommitKey -> /a/b/c
> So, now in Ozone we will have directory and file with name "c"
>  
>  # InitiateMPU /a/b/c
>  # Create Part1 /a/b/c
>  # Commit Part1 /a/b/c
>  # Create Directory /a/b/c
>  # Complete MPU /a/b/c
> So, now in Ozone, we will have directory and file with name "c".  In MPU this is one example scenario.
>  
> Few proposals/ideas to solve this:
>  # Check during commit whether a directory already exists with same name. But disadvantage is after user uploads the entire data during last stage we fail.  (File system with create in progress acts similarly. Scenario: 1. vi t1 2. mkdir t1 3. Save t1: (Fail:"t1" is a directory)
>  # During create directory check are there any open key creation with same name and fail.
>  
> Any of the above approaches are not final, this Jira is opened to discuss this issue and come up with solution.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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