diff --git a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java index 4315ad8ee4cab9..821cea44ca76aa 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java +++ b/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJob.java @@ -1022,7 +1022,7 @@ public void write(DataOutput out) throws IOException { ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); try (GZIPOutputStream gzipStream = new GZIPOutputStream(byteStream)) { try (DataOutputStream stream = new DataOutputStream(gzipStream)) { - writeOthers(out); + writeOthers(stream); written = stream.size(); } }