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 daa9639757..13cb370746 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 .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 void createVolume(String volumeName, String owner, .setOwnerName(owner) .setVolume(volumeName) .setQuotaInBytes(quota) + .setCreationTime(Time.now()) .addOzoneAcls(KSMPBHelper.convertOzoneAcl(userAcl)); List listOfAcls = new ArrayList<>();