Skip to content

Commit bf25f8a

Browse files
branch-4.0: [chore](FE) Log meta module size when doing checkpoint #58478 (#58502)
Cherry-picked from #58478 Co-authored-by: Gavin Chou <[email protected]>
1 parent a0404b5 commit bf25f8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fe/fe-core/src/main/java/org/apache/doris/persist/meta/MetaWriter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,14 @@ public static void write(File imageFile, Env env) throws IOException {
113113
// 2. write other modules
114114
for (MetaPersistMethod m : PersistMetaModules.MODULES_IN_ORDER) {
115115
checksum.setRef(writer.doWork(m.name, () -> {
116+
long cnt1 = dos.getCount();
116117
try {
117118
return (long) m.writeMethod.invoke(env, dos, checksum.getRef());
118119
} catch (IllegalAccessException | InvocationTargetException e) {
119120
LOG.warn("failed to write meta module: {}", m.name, e);
120121
throw new RuntimeException(e);
122+
} finally {
123+
LOG.info("write meta module: {} size in bytes: {}", m.name, dos.getCount() - cnt1);
121124
}
122125
}));
123126
}

0 commit comments

Comments
 (0)