[
https://issues.apache.org/jira/browse/HADOOP-18188?focusedWorklogId=753190&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-753190
]
ASF GitHub Bot logged work on HADOOP-18188:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 06/Apr/22 05:19
Start Date: 06/Apr/22 05:19
Worklog Time Spent: 10m
Work Description: aajisaka commented on code in PR #4135:
URL: https://github.com/apache/hadoop/pull/4135#discussion_r843470319
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellTouch.java:
##########
@@ -200,6 +200,72 @@ public void testTouch() throws Exception {
FileStatus fileStatus = lfs.getFileStatus(newFile);
assertThat(fileStatus.getAccessTime()).isEqualTo(dateObj.getTime());
assertThat(fileStatus.getModificationTime()).isEqualTo(dateObj.getTime());
+
+ touchDirTests();
+ }
+
+ private void touchDirTests() throws Exception {
Review Comment:
How about creating a separate test method for directory?
Issue Time Tracking
-------------------
Worklog Id: (was: 753190)
Time Spent: 1h (was: 50m)
> Support touch command for directory
> -----------------------------------
>
> Key: HADOOP-18188
> URL: https://issues.apache.org/jira/browse/HADOOP-18188
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Akira Ajisaka
> Assignee: Viraj Jasani
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Currently hadoop fs -touch command cannot update the mtime and the atime of
> directory. The feature would be useful when we check whether the filesystem
> is ready to write or not without creating any file.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]