Skip to content

Commit acaf76a

Browse files
DieterDP-ngNihalJain
authored andcommitted
HBASE-28408 Rephrase confusing log message (#5718)
Assume a user has a series of backups: Full1, Inc2, Inc3, where a table has not changed between Full1 and Inc3, but has changed after Inc3. When restoring that table to Inc3, a log warning was outputted mentioning there was no need for a restore. This message in fact means there is no need for the incremental restore portion of the restore process. Signed-off-by: Nihal Jain <[email protected]> (cherry picked from commit 102c1b6)
1 parent 1c41e86 commit acaf76a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl/RestoreTablesClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ private void restoreImages(BackupImage[] images, TableName sTable, TableName tTa
173173
}
174174

175175
if (dirList.isEmpty()) {
176-
LOG.warn("Nothing has changed, so there is no need to restore '" + sTable + "'");
176+
LOG.info("No incremental changes since full backup for '" + sTable
177+
+ "', skipping incremental restore step.");
177178
return;
178179
}
179180

0 commit comments

Comments
 (0)