[test](fe) Add more FE UT for org.apache.doris.journal.bdbje (#26629)

This commit is contained in:
Lei Zhang
2023-11-13 23:06:17 +08:00
committed by GitHub
parent 5ad49dceaa
commit 37ca129fa7
3 changed files with 403 additions and 1 deletions

View File

@ -109,7 +109,7 @@ public class BDBJEJournal implements Journal { // CHECKSTYLE IGNORE THIS LINE: B
long currentName = Long.parseLong(currentDbName);
long newNameVerify = currentName + currentJournalDB.count();
if (newName == newNameVerify) {
LOG.info("roll edit log. new db name is {}", newName);
LOG.info("roll edit log. new dbName: {}, old dbName:{}", newName, currentDbName);
currentJournalDB = bdbEnvironment.openDatabase(Long.toString(newName));
} else {
String msg = String.format("roll journal error! journalId and db journal numbers is not match. "