[
https://issues.apache.org/jira/browse/HADOOP-18188?focusedWorklogId=753207&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-753207
]
ASF GitHub Bot logged work on HADOOP-18188:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 06/Apr/22 06:24
Start Date: 06/Apr/22 06:24
Worklog Time Spent: 10m
Work Description: virajjasani commented on code in PR #4135:
URL: https://github.com/apache/hadoop/pull/4135#discussion_r843508971
##########
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:
Yeah that wouldn't hurt either, will update the PR.
Issue Time Tracking
-------------------
Worklog Id: (was: 753207)
Time Spent: 1h 10m (was: 1h)
> 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 10m
> 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]