HBASE-25710 During the recovery process,if there is an incremental backup of data that has not been updated,warning and skip (#3103)

Co-authored-by: 申胜利 <shenshengli@inspur.com>
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
申胜利 2021-03-30 02:56:37 +08:00 committed by GitHub
parent 6a8998b29c
commit 05dddafc37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -170,6 +170,11 @@ public class RestoreTablesClient {
} }
if (dirList.isEmpty()) {
LOG.warn("Nothing has changed, so there is no need to restore '" + sTable + "'");
return;
}
String dirs = StringUtils.join(dirList, ","); String dirs = StringUtils.join(dirList, ",");
LOG.info("Restoring '" + sTable + "' to '" + tTable + "' from log dirs: " + dirs); LOG.info("Restoring '" + sTable + "' to '" + tTable + "' from log dirs: " + dirs);
Path[] paths = new Path[dirList.size()]; Path[] paths = new Path[dirList.size()];