You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2007/07/06 23:59:04 UTC

[jira] Created: (HADOOP-1572) should have utime method in HDFS & FIleSystem to set modification times.

should have utime method in HDFS & FIleSystem to set modification times.
------------------------------------------------------------------------

                 Key: HADOOP-1572
                 URL: https://issues.apache.org/jira/browse/HADOOP-1572
             Project: Hadoop
          Issue Type: New Feature
          Components: dfs
            Reporter: Owen O'Malley


It would be nice to modify the modification times of files.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-1572) should have utime method in HDFS & FIleSystem to set modification times.

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523893 ] 

Doug Cutting commented on HADOOP-1572:
--------------------------------------

> Does it mean that we have consensus for implementing option 2?

Yes.  +1 on 2.

> should have utime method in HDFS & FIleSystem to set modification times.
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-1572
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1572
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>            Reporter: Owen O'Malley
>
> It would be nice to modify the modification times of files.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-1572) should have utime method in HDFS & FIleSystem to set modification times.

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523676 ] 

Doug Cutting commented on HADOOP-1572:
--------------------------------------

What's the use case for this?  You can't actually modify the file.  Why do you need to change its modification time?

> should have utime method in HDFS & FIleSystem to set modification times.
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-1572
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1572
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>            Reporter: Owen O'Malley
>
> It would be nice to modify the modification times of files.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-1572) should have utime method in HDFS & FIleSystem to set modification times.

Posted by "Owen O'Malley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523708 ] 

Owen O'Malley commented on HADOOP-1572:
---------------------------------------

+1 on option 2

> should have utime method in HDFS & FIleSystem to set modification times.
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-1572
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1572
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>            Reporter: Owen O'Malley
>
> It would be nice to modify the modification times of files.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-1572) should have utime method in HDFS & FIleSystem to set modification times.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523702 ] 

dhruba borthakur commented on HADOOP-1572:
------------------------------------------

Does it mean that we have consensus for implementing option 2? 

> should have utime method in HDFS & FIleSystem to set modification times.
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-1572
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1572
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>            Reporter: Owen O'Malley
>
> It would be nice to modify the modification times of files.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-1572) should have utime method in HDFS & FIleSystem to set modification times.

Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523682 ] 

Chris Douglas commented on HADOOP-1572:
---------------------------------------

When copying between filesystems, one could have the option of preserving modification times (particularly useful for keeping two trees synchronized). "touch" could be added to FsShell, instead of the somewhat odd "touchz" that's in there now. When permissions are added, even if the file is immutable its modification time should be updated when its permissions change.

> should have utime method in HDFS & FIleSystem to set modification times.
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-1572
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1572
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>            Reporter: Owen O'Malley
>
> It would be nice to modify the modification times of files.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-1572) should have utime method in HDFS & FIleSystem to set modification times.

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523690 ] 

Doug Cutting commented on HADOOP-1572:
--------------------------------------

Okay.  Thanks!  +1

> should have utime method in HDFS & FIleSystem to set modification times.
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-1572
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1572
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>            Reporter: Owen O'Malley
>
> It would be nice to modify the modification times of files.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HADOOP-1572) should have utime method in HDFS & FIleSystem to set modification times.

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523540 ] 

dhruba borthakur commented on HADOOP-1572:
------------------------------------------

1. One option would be to introduce a new API FileSystem.setFileStatus() that will let an application set INode properties. Only the replication factor and the modification time can be set by this method.

2. Another option would be to introduce FileSystem.setModificationTime().  This, in turn,  will invoke ClientProtocol.setModificationTime()

Option 1 has the advantage that a single call can be used to change various attributes of a file. It has the disadvantage that when two clients simultaneously try to change two different file attributes, one client's updates could be clobbered!

Option 2 requires a new API for modifying each file attribute, but is semantically simpler to use, design and implement. I am leaning towards implementing option 2.




> should have utime method in HDFS & FIleSystem to set modification times.
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-1572
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1572
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: dfs
>            Reporter: Owen O'Malley
>
> It would be nice to modify the modification times of files.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.