Jaehui-Lee commented on code in PR #6552:
URL: https://github.com/apache/hbase/pull/6552#discussion_r1894978121
##########
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/storefiletracker/StoreFileListFile.java:
##########
@@ -174,7 +176,13 @@ private NavigableMap<Long, List<Path>> listFiles() throws
IOException {
LOG.warn("Found invalid track file {}, which is not a file", file);
continue;
}
- if (!TRACK_FILE_PATTERN.matcher(file.getName()).matches()) {
+ if (TRACK_FILE_OLD_PATTERN.matcher(file.getName()).matches()) {
+ Path newFile = new Path(trackFileDir,
+ file.getName() + TRACK_FILE_SEPARATOR + System.currentTimeMillis());
+ LOG.info("Found invalid track file {}, Rename to {}", file, newFile);
+ fs.rename(file, newFile);
Review Comment:
I modified the test to check if StoreFileListFile without a timestamp can be
read correctly.
--
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]