[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2015-03-09 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on HDFS-2712:
-

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  http://issues.apache.org/jira/secure/attachment/12508558/HDFS-2712.patch
  against trunk revision 47f7f18.

{color:red}-1 patch{color}.  The patch command could not apply the patch.

Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/9813//console

This message is automatically generated.

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: namenode
>Affects Versions: 0.23.0, 2.0.0-alpha
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
> Attachments: HDFS-2712.patch
>
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2012-01-05 Thread Daryn Sharp (Commented) (JIRA)

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

Daryn Sharp commented on HDFS-2712:
---

Interesting.  HADOOP-1869 is long and a bit unclear.  A number of people did 
advocate posix compliance.  My reading is there was concern over lots of atime 
updates for directories, however posix just requires atime to set at creation 
time.  Using a directory's mtime in place of atime, thus removing atime, really 
violates posix.  Banning setTimes on a directory also violates posix.

Breaking all these posix semantics could spell trouble for filesystems that do 
want to adhere to posix, including FUSE implementations.

As a related aside: For performance reasons, I can see not updating a 
directory's mtime when its contents are altered, but why aren't we updating 
mtime when the owner/group/permissions are changed?  In which case atime 
becomes important for a directory.

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
> Attachments: HDFS-2712.patch
>
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2012-01-05 Thread Uma Maheswara Rao G (Commented) (JIRA)

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

Uma Maheswara Rao G commented on HDFS-2712:
---

I agree you, with respective to POSIX
But current implementations of DFS supports atime, mtime in iNodes. Looks long 
back there was a discussion about this behaviors considering performance and 
other factors HADOOP-1869. decided to not supporting the setTimes on 
directories.

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
> Attachments: HDFS-2712.patch
>
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2012-01-03 Thread Daryn Sharp (Commented) (JIRA)

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

Daryn Sharp commented on HDFS-2712:
---

This seems at odds with posix.  I believe a directory's behavior is supposed to:
* atime: creation
* ctime: permissions, owner, group are changed
* mtime: when ctime changes, plus when the contents are altered (path created 
or deleted)


> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
> Attachments: HDFS-2712.patch
>
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2011-12-23 Thread Uma Maheswara Rao G (Commented) (JIRA)

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

Uma Maheswara Rao G commented on HDFS-2712:
---

Failures looks to be due to Balancer tests time out
{quote}
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.302 sec
Running org.apache.hadoop.hdfs.server.balancer.TestBalancer
Running org.apache.hadoop.hdfs.web.TestOffsetUrlInputStream
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.567 sec
Running org.apache.hadoop.hdfs.web.TestWebHdfsFileSystemContract
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.199 sec <<< 
FAILURE!
Running org.apache.hadoop.hdfs.web.TestFSMainOperationsWebHdfs
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.274 sec <<< 
FAILURE!
{quote}

In recent build balancer tests has broken in Jenkins. 
https://builds.apache.org/job/Hadoop-Hdfs-trunk/lastCompletedBuild/testReport/
Filed a JIRA for Balancer tests HDFS-2721

findbugs also unrelated.

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
> Attachments: HDFS-2712.patch
>
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2011-12-23 Thread Hadoop QA (Commented) (JIRA)

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

Hadoop QA commented on HDFS-2712:
-

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12508558/HDFS-2712.patch
  against trunk revision .

+1 @author.  The patch does not contain any @author tags.

+1 tests included.  The patch appears to include 3 new or modified tests.

-1 javadoc.  The javadoc tool appears to have generated 20 warning messages.

+1 javac.  The applied patch does not increase the total number of javac 
compiler warnings.

+1 eclipse:eclipse.  The patch built with eclipse:eclipse.

-1 findbugs.  The patch appears to introduce 1 new Findbugs (version 1.3.9) 
warnings.

-1 release audit.  The applied patch generated 1 release audit warnings 
(more than the trunk's current 0 warnings).

-1 core tests.  The patch failed these unit tests:
  org.apache.hadoop.hdfs.web.TestFSMainOperationsWebHdfs
  org.apache.hadoop.hdfs.web.TestWebHdfsFileSystemContract

+1 contrib tests.  The patch passed contrib unit tests.

Test results: 
https://builds.apache.org/job/PreCommit-HDFS-Build/1737//testReport/
Release audit warnings: 
https://builds.apache.org/job/PreCommit-HDFS-Build/1737//artifact/trunk/patchprocess/patchReleaseAuditProblems.txt
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-HDFS-Build/1737//artifact/trunk/hadoop-hdfs-project/patchprocess/newPatchFindbugsWarningshadoop-hdfs.html
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/1737//console

This message is automatically generated.

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
> Attachments: HDFS-2712.patch
>
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2011-12-23 Thread Uma Maheswara Rao G (Commented) (JIRA)

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

Uma Maheswara Rao G commented on HDFS-2712:
---

1st Patch : HDFS-2712 
1) UnsupportedActionException will be thrown if we try to setTimes on 
directories
2) Moved the atime field to iNodeFile obj.
3) also moved atime down to iNodeSymlink, i am not sure whether really a time 
required on iNodeSymlink. But not to break any functionality, i just added 
atime to it as well.


Thanks
Uma

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
> Attachments: HDFS-2712.patch
>
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2011-12-21 Thread Uma Maheswara Rao G (Commented) (JIRA)

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

Uma Maheswara Rao G commented on HDFS-2712:
---

make sense, if there are no comments on adding UnsupportedActionException  for 
dirs and FNFE for nonexistent file, will provide patch tomorrow.
Thanks a lot, Konstantin for your time.

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2011-12-21 Thread Konstantin Shvachko (Commented) (JIRA)

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

Konstantin Shvachko commented on HDFS-2712:
---

IllegalArgumentException is a RuntimeException rather than IOException. We 
don't want to throw an unchecked exception here.
I agree file-not-found and not-a-file are two different cases.

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (HDFS-2712) setTimes should support only for files and move the atime field down to iNodeFile.

2011-12-21 Thread Uma Maheswara Rao G (Commented) (JIRA)

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

Uma Maheswara Rao G commented on HDFS-2712:
---

{quote}
setTimes() for directories should throw an exception (FileNotFoundException or 
UnsupportedActionException?)
{quote}
I think here two cases, one is for non existent file and other is for 
directories. Both cases getINodeFile will return null. SO, to throw the 
exception, FileNotFoundException should be correct for non existent files and 
if src is a dir then UnsupportedActionException will have more meaning?
or since the passed argument value is not expected one, 
IllegalArgumentException?

> setTimes should support only for files and move the atime field down to 
> iNodeFile.
> --
>
> Key: HDFS-2712
> URL: https://issues.apache.org/jira/browse/HDFS-2712
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: name-node
>Affects Versions: 0.23.0, 0.24.0
>Reporter: Uma Maheswara Rao G
>Assignee: Uma Maheswara Rao G
>
> After the dicussion in HDFS-2436, unsupported behaviour for setTimes was 
> intentional (HADOOP-1869).
> But current INode structure hierarchy seems, it supports atime for 
> directories also. But as per HADOOP-1869, we are supporting only for files. 
> To avoid the confusions, we can move the atime fields to INodeFile as we 
> planned to support setTimes only for files. And also restrict the support for 
> setTimes on directories ( which is implemented with HDFS-2436 ).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira