[ISSUE #8532] Fix flush metadata when commit file because of full file (#8533)

This commit is contained in:
bxfjb
2024-08-14 23:42:26 +08:00
committed by GitHub
parent 524ca4e862
commit 227be2cf91
@@ -180,6 +180,7 @@ public class FlatAppendFile {
log.info("FlatAppendFile#append not successful for the file {} is full, commit result={}",
fileSegment.getPath(), commitResult);
if (commitResult) {
this.flushFileSegmentMeta(fileSegment);
return this.rollingNewFile(this.getAppendOffset()).append(buffer, timestamp);
} else {
return AppendResult.UNKNOWN_ERROR;