Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Currently BackupLogCleaner#getDeletableFiles() issues one Get per WAL file:
for (FileStatus file : files) { String wal = file.getPath().toString(); boolean logInSystemTable = table.isWALFileDeletable(wal);
This is rather inefficient considering the number of WAL files in production can get quite large.
We should use multi-get to reduce the number of calls to backup table (which normally resides on another server).