hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cli...@apache.org
Subject hadoop git commit: HDFS-12365. Ozone: ListVolume displays incorrect createdOn time when the volume was created by OzoneRpcClient. Contributed by Weiwei Yang.
Date Mon, 28 Aug 2017 17:28:11 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-7240 76a156ebc -> f0d6a3eaa


HDFS-12365. Ozone: ListVolume displays incorrect createdOn time when the volume was created
by OzoneRpcClient. Contributed by Weiwei Yang.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/f0d6a3ea
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/f0d6a3ea
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/f0d6a3ea

Branch: refs/heads/HDFS-7240
Commit: f0d6a3eaa024e81000a2e97943c4bafbae72ec14
Parents: 76a156e
Author: Chen Liang <cliang@apache.org>
Authored: Mon Aug 28 10:28:20 2017 -0700
Committer: Chen Liang <cliang@apache.org>
Committed: Mon Aug 28 10:28:20 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClient.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/f0d6a3ea/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClient.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClient.java
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClient.java
index daa9639..13cb370 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClient.java
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClient.java
@@ -57,6 +57,7 @@ import org.apache.hadoop.scm.protocolPB
 import org.apache.hadoop.scm.protocolPB
     .StorageContainerLocationProtocolPB;
 import org.apache.hadoop.security.UserGroupInformation;
+import org.apache.hadoop.util.Time;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -201,6 +202,7 @@ public class OzoneRpcClient implements OzoneClient, Closeable {
         .setOwnerName(owner)
         .setVolume(volumeName)
         .setQuotaInBytes(quota)
+        .setCreationTime(Time.now())
         .addOzoneAcls(KSMPBHelper.convertOzoneAcl(userAcl));
 
     List<OzoneAcl> listOfAcls = new ArrayList<>();


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message