steveloughran commented on a change in pull request #1134: HADOOP-16433. 
S3Guard: Filter expired entries and tombstones when lis…
URL: https://github.com/apache/hadoop/pull/1134#discussion_r306280921
 
 

 ##########
 File path: 
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/PathMetadata.java
 ##########
 @@ -71,6 +78,7 @@ public PathMetadata(S3AFileStatus fileStatus, Tristate 
isEmptyDir, boolean
     this.fileStatus = fileStatus;
     this.isEmptyDirectory = isEmptyDir;
     this.isDeleted = isDeleted;
+    this.setLastUpdated(lastUpdated);
 
 Review comment:
   We should really have a an argument check that `lastUpdated >= 0`. I know 
its unlikely, but what if someone does update the field. Actually, an argument 
check isn't enough there, as it'd mean that you'd have corrupted the DB to the 
extent nothing would play. Better to react to a negative value with a warn and 
setting the value to 0

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to