You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/11/14 09:02:00 UTC
[jira] [Work logged] (HDDS-426) Add field modificationTime for
Volume and Bucket
[ https://issues.apache.org/jira/browse/HDDS-426?focusedWorklogId=343231&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-343231 ]
ASF GitHub Bot logged work on HDDS-426:
---------------------------------------
Author: ASF GitHub Bot
Created on: 14/Nov/19 09:01
Start Date: 14/Nov/19 09:01
Worklog Time Spent: 10m
Work Description: cxorm commented on pull request #164: HDDS-426. Add field modificationTime for Volume and Bucket
URL: https://github.com/apache/hadoop-ozone/pull/164
## What changes were proposed in this pull request?
We would update the ```modificationTime``` of ```volume``` when
- ```ozone sh volume create```
- ```ozone sh volume update```
And we would update the ```modificationTime``` of ```bucket``` when
- ```ozone sh bucket create```
So we focus on these items.
Following disscussion:
Would we update the ```modificationTime``` of ```volume``` when updating ```key``` or ```bucket``` ?
Would we update the ```modificationTime``` of ```bucket``` when updating ```key``` ?
And maybe we could create a JIRA to update the ```modificationTime``` when deleting. (Regarding [HDDS-2416](https://issues.apache.org/jira/browse/HDDS-426
))
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-426
## How was this patch tested?
UTs including:
```TestOmVolumeArgs```
```TestOMVolumeCreateRequest```
```TestOMVolumeSetOwnerRequest```
```TestOMVolumeSetQuotaRequest```
```TestOMBucketCreateRequest```
```TestObjectPrinter```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 343231)
Remaining Estimate: 0h
Time Spent: 10m
> Add field modificationTime for Volume and Bucket
> ------------------------------------------------
>
> Key: HDDS-426
> URL: https://issues.apache.org/jira/browse/HDDS-426
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Components: Ozone Manager
> Reporter: Dinesh Chitlangia
> Assignee: YiSheng Lien
> Priority: Major
> Labels: newbie, pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> There are update operations that can be performed for Volume, Bucket and Key.
> While Key records the modification time, Volume and & Bucket do not capture this.
>
> This Jira proposes to add the required field to Volume and Bucket in order to capture the modficationTime.
>
> Current Status:
> {noformat}
> hadoop@1987b5de4203:~$ ./bin/ozone oz -infoVolume /dummyvol
> 2018-09-10 17:16:12 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
> {
> "owner" : {
> "name" : "bilbo"
> },
> "quota" : {
> "unit" : "TB",
> "size" : 1048576
> },
> "volumeName" : "dummyvol",
> "createdOn" : "Mon, 10 Sep 2018 17:11:32 GMT",
> "createdBy" : "bilbo"
> }
> hadoop@1987b5de4203:~$ ./bin/ozone oz -infoBucket /dummyvol/mybuck
> 2018-09-10 17:15:25 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
> {
> "volumeName" : "dummyvol",
> "bucketName" : "mybuck",
> "createdOn" : "Mon, 10 Sep 2018 17:12:09 GMT",
> "acls" : [ {
> "type" : "USER",
> "name" : "hadoop",
> "rights" : "READ_WRITE"
> }, {
> "type" : "GROUP",
> "name" : "users",
> "rights" : "READ_WRITE"
> }, {
> "type" : "USER",
> "name" : "spark",
> "rights" : "READ_WRITE"
> } ],
> "versioning" : "DISABLED",
> "storageType" : "DISK"
> }
> hadoop@1987b5de4203:~$ ./bin/ozone oz -infoKey /dummyvol/mybuck/myk1
> 2018-09-10 17:19:43 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
> {
> "version" : 0,
> "md5hash" : null,
> "createdOn" : "Mon, 10 Sep 2018 17:19:04 GMT",
> "modifiedOn" : "Mon, 10 Sep 2018 17:19:04 GMT",
> "size" : 0,
> "keyName" : "myk1",
> "keyLocations" : [ ]
> }{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org