-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
kind/fixCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Describe the bug
Yesterday, I found the FE image file in our prod env is wrong when I restart one OBSERVER node. The FE image file lost one database meta!!!
I repaired the FE image by dump the in memory meta.
Why the disk image file is broken but the dump image file is right?
Because checkpoint create disk image file use CHECKPOINT Catalog instance, dump image file use SingletonHolder.INSTANCE.
public long saveDb(DataOutputStream dos, long checksum) throws IOException {
int dbCount = idToDb.size() - nameToCluster.keySet().size();
I ensure the reason is idToDb lost one database.
I think there should be a concurrent issue or the Checkpoint process has some bug.
I will add some log to track this issue.
Metadata
Metadata
Assignees
Labels
kind/fixCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.