Skip to content

Commit

Permalink
HBASE-27543 May be miss data when use mob
Browse files Browse the repository at this point in the history
  • Loading branch information
WenFeiYi committed Dec 21, 2022
1 parent 222ec68 commit eae0c46
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ private FileDetails getFileDetails(Collection<HStoreFile> filesToCompact, boolea
}
}
tmp = fileInfo.get(TIMERANGE_KEY);
fd.latestPutTs =
long latestPutTs =
tmp == null ? HConstants.LATEST_TIMESTAMP : TimeRangeTracker.parseFrom(tmp).getMax();
fd.latestPutTs = Math.max(fd.latestPutTs, latestPutTs);
LOG.debug(
"Compacting {}, keycount={}, bloomtype={}, size={}, "
+ "encoding={}, compression={}, seqNum={}{}",
Expand Down

0 comments on commit eae0c46

Please sign in to comment.