This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push: new 2f6d1ff41a7 [fix](binlog) Fix replay binlog gc when not found db binlog (#31463) (#31872) 2f6d1ff41a7 is described below commit 2f6d1ff41a7d4bf989a2bc32c27ca387965c1f3f Author: Jack Drogon <jack.xsuper...@gmail.com> AuthorDate: Thu Mar 7 09:56:59 2024 +0800 [fix](binlog) Fix replay binlog gc when not found db binlog (#31463) (#31872) Signed-off-by: Jack Drogon <jack.xsuper...@gmail.com> --- fe/fe-core/src/main/java/org/apache/doris/binlog/BinlogManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/binlog/BinlogManager.java b/fe/fe-core/src/main/java/org/apache/doris/binlog/BinlogManager.java index 8187e966561..96d0f7f4e13 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/binlog/BinlogManager.java +++ b/fe/fe-core/src/main/java/org/apache/doris/binlog/BinlogManager.java @@ -397,6 +397,10 @@ public class BinlogManager { for (BinlogTombstone tombstone : binlogGcInfo.getTombstones()) { long dbId = tombstone.getDbId(); DBBinlog dbBinlog = gcDbBinlogMap.get(dbId); + if (dbBinlog == null) { + LOG.warn("dbBinlog not found. dbId: {}", dbId); + continue; + } dbBinlog.replayGc(tombstone); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org