You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2026/06/02 10:18:00 UTC

[jira] [Commented] (HADOOP-19903) Update documentation for rename() in GCS connector

    [ https://issues.apache.org/jira/browse/HADOOP-19903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18085463#comment-18085463 ] 

Steve Loughran commented on HADOOP-19903:
-----------------------------------------

[~ahmar] I think it means in GFS it's not an S3 COPY, just a hard link style copy. It's certainly a fast O(1) operation, with file rename atomic, dir rename non-atomic O(descendants)

> Update documentation for rename() in GCS connector
> --------------------------------------------------
>
>                 Key: HADOOP-19903
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19903
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/gcs
>    Affects Versions: 3.6.0
>            Reporter: Ahmar Suhail
>            Assignee: Ahmar Suhail
>            Priority: Major
>
> The GCS rename docs mention 
> ```
> Note that only the metadata is copied and not the content of any file.
> ```
> here: https://github.com/apache/hadoop/blob/trunk/hadoop-cloud-storage-project/hadoop-gcp/src/main/java/org/apache/hadoop/fs/gs/GoogleCloudStorageFileSystem.java#L441-L447
> I am not sure if this is true, as if you follow the code to the actual API call, it ends up as a 
> storage.objects().copy() in GoogleCloudStorageImpl.copyInternal(). 
>  
> I want to clarify the behaviour and then update the javadocs as I am a bit confused right now. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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