ChenSammi commented on code in PR #10203:
URL: https://github.com/apache/ozone/pull/10203#discussion_r3418162967
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/BlockOutputStreamEntryPool.java:
##########
@@ -330,7 +332,10 @@ void commitKey(long offset) throws IOException {
commitUploadPartInfo =
omClient.commitMultipartUploadPart(buildKeyArgs(), openID);
} else {
- omClient.commitKey(buildKeyArgs(), openID);
+ final OptionalLong modificationTime =
omClient.commitKeyWithModificationTime(buildKeyArgs(), openID);
+ if (modificationTime.isPresent()) {
+ metadata.put(OzoneConsts.MODIFICATION_TIME,
String.valueOf(modificationTime.getAsLong()));
Review Comment:
metadata is to persist in OM DB, a different goal. Please add a new field
for LastModified value.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]