liuxiaocs7 commented on code in PR #8943:
URL: https://github.com/apache/hbase/pull/8943#discussion_r4742238405
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobFileCleanupUtil.java:
##########
@@ -205,14 +205,12 @@ private static void
checkColumnFamilyDescriptor(Configuration conf, TableName ta
// MOB belonged to a region no longer hosted and is not referenced by
any store file.
// After a split or merge, the children keep referencing the MOB files
of the parent
// regions until the MOB cells are rewritten by a MOB compaction.
- long creationTime = fs.getFileStatus(p).getModificationTime();
- if (creationTime < maxCreationTimeToArchive) {
- LOG.trace("Archiving MOB file {} creation time={}", p,
- (fs.getFileStatus(p).getModificationTime()));
+ long modificationTime = lfs.getModificationTime();
+ if (modificationTime < maxCreationTimeToArchive) {
+ LOG.trace("Archiving MOB file {} modification time={}", p,
modificationTime);
Review Comment:
It would be best to unify the code across all active branches.
--
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]