@@ -1638,7 +1638,7 @@ private void waitingAllSnapshotsFinished() {
16381638 snapshotFinishedTime = System .currentTimeMillis ();
16391639 state = RestoreJobState .DOWNLOAD ;
16401640
1641- env .getEditLog ().logRestoreJob (this );
1641+ env .getEditLog ().logRestoreJob (this , null );
16421642 LOG .info ("finished making snapshots. {}" , this );
16431643 return ;
16441644 }
@@ -1981,7 +1981,7 @@ private void waitingAllDownloadFinished() {
19811981 // backupMeta is useless now
19821982 backupMeta = null ;
19831983
1984- env .getEditLog ().logRestoreJob (this );
1984+ env .getEditLog ().logRestoreJob (this , null );
19851985 LOG .info ("finished to download. {}" , this );
19861986 }
19871987
@@ -2036,6 +2036,7 @@ private Status allTabletCommitted(boolean isReplay) {
20362036 return new Status (ErrCode .NOT_FOUND , "database " + dbId + " does not exist" );
20372037 }
20382038
2039+ RestoreBinLogInfo restoreBinLogInfo = new RestoreBinLogInfo (dbId , db .getName ());
20392040 // replace the origin tables in atomic.
20402041 if (isAtomicRestore ) {
20412042 Status st = atomicReplaceOlapTables (db , isReplay );
@@ -2097,6 +2098,7 @@ private Status allTabletCommitted(boolean isReplay) {
20972098 }
20982099
20992100 if (!isReplay ) {
2101+ restoredTbls .stream ().forEach (tbl -> restoreBinLogInfo .addTableInfo (tbl .getId (), tbl .getName ()));
21002102 restoredPartitions .clear ();
21012103 restoredTbls .clear ();
21022104 restoredResources .clear ();
@@ -2111,7 +2113,7 @@ private Status allTabletCommitted(boolean isReplay) {
21112113 finishedTime = System .currentTimeMillis ();
21122114 state = RestoreJobState .FINISHED ;
21132115
2114- env .getEditLog ().logRestoreJob (this );
2116+ env .getEditLog ().logRestoreJob (this , restoreBinLogInfo );
21152117 }
21162118
21172119 LOG .info ("job is finished. is replay: {}. {}" , isReplay , this );
@@ -2383,7 +2385,7 @@ private void cancelInternal(boolean isReplay) {
23832385 finishedTime = System .currentTimeMillis ();
23842386 state = RestoreJobState .CANCELLED ;
23852387 // log
2386- env .getEditLog ().logRestoreJob (this );
2388+ env .getEditLog ().logRestoreJob (this , null );
23872389
23882390 LOG .info ("finished to cancel restore job. current state: {}. is replay: {}. {}" ,
23892391 curState .name (), isReplay , this );
0 commit comments