This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 028a4509eab branch-3.0: [fix](Export) fix a memory leak in the FE
because of the ExportJob #44019 (#44088)
028a4509eab is described below
commit 028a4509eab547f10fef0b438f708a3aaf4a65e0
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Nov 17 22:13:45 2024 +0800
branch-3.0: [fix](Export) fix a memory leak in the FE because of the
ExportJob #44019 (#44088)
Cherry-picked from #44019
Co-authored-by: Tiewei Fang <[email protected]>
---
fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
b/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
index 98cfb443ec8..554185a2ed6 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/load/ExportJob.java
@@ -703,6 +703,9 @@ public class ExportJob implements Writable {
finishTimeMs = System.currentTimeMillis();
failMsg = new ExportFailMsg(type, msg);
jobExecutorList.clear();
+ selectStmtListPerParallel.clear();
+ allOutfileInfo.clear();
+ partitionToVersion.clear();
if (FeConstants.runningUnitTest) {
return;
}
@@ -750,6 +753,9 @@ public class ExportJob implements Writable {
outfileInfo = GsonUtils.GSON.toJson(allOutfileInfo);
// Clear the jobExecutorList to release memory.
jobExecutorList.clear();
+ selectStmtListPerParallel.clear();
+ allOutfileInfo.clear();
+ partitionToVersion.clear();
Env.getCurrentEnv().getEditLog().logExportUpdateState(this,
ExportJobState.FINISHED);
LOG.info("finish export job {}", id);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]