priyeshkaratha commented on code in PR #12170:
URL: https://github.com/apache/ozone/pull/12170#discussion_r4779174870


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataReader.java:
##########
@@ -236,6 +240,27 @@ public KeyInfoWithVolumeContext getKeyInfo(final OmKeyArgs 
args,
     }
   }
 
+  /**
+   * Returns when the key expires under the bucket lifecycle configuration, 
for the S3 x-amz-expiration header.
+   * Nothing is returned for a key read from a snapshot, and a failed lookup 
only omits the expiration.
+   */
+  @Nullable
+  private LifecycleExpirationInfo getLifecycleExpiration(ResolvedBucket 
bucket, String keyPath, OmKeyInfo keyInfo) {

Review Comment:
   Good catch, that wasn't intended. OM now returns the expiration only when 
`ozone.lifecycle.service.enabled` is `true`. So the header isn't sent when 
nothing would delete the key.



-- 
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]

Reply via email to