Apache9 commented on code in PR #4935:
URL: https://github.com/apache/hbase/pull/4935#discussion_r1073325006


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/compactions/Compactor.java:
##########
@@ -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);

Review Comment:
   Check  the code, we do not assign any value to fd.latestPutTs, so what is 
the actual problem here? The latestPutTs info for bulk loaded files can not 
negative and cause problem?



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

Reply via email to