HDFS-12365. Ozone: ListVolume displays incorrect createdOn time when the volume was created by OzoneRpcClient. Contributed by Weiwei Yang.
This commit is contained in:
parent
76a156ebce
commit
f0d6a3eaa0
|
@ -57,6 +57,7 @@ import org.apache.hadoop.scm.protocolPB
|
||||||
import org.apache.hadoop.scm.protocolPB
|
import org.apache.hadoop.scm.protocolPB
|
||||||
.StorageContainerLocationProtocolPB;
|
.StorageContainerLocationProtocolPB;
|
||||||
import org.apache.hadoop.security.UserGroupInformation;
|
import org.apache.hadoop.security.UserGroupInformation;
|
||||||
|
import org.apache.hadoop.util.Time;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -201,6 +202,7 @@ public class OzoneRpcClient implements OzoneClient, Closeable {
|
||||||
.setOwnerName(owner)
|
.setOwnerName(owner)
|
||||||
.setVolume(volumeName)
|
.setVolume(volumeName)
|
||||||
.setQuotaInBytes(quota)
|
.setQuotaInBytes(quota)
|
||||||
|
.setCreationTime(Time.now())
|
||||||
.addOzoneAcls(KSMPBHelper.convertOzoneAcl(userAcl));
|
.addOzoneAcls(KSMPBHelper.convertOzoneAcl(userAcl));
|
||||||
|
|
||||||
List<OzoneAcl> listOfAcls = new ArrayList<>();
|
List<OzoneAcl> listOfAcls = new ArrayList<>();
|
||||||
|
|
Loading…
Reference in New Issue