This is an automated email from the ASF dual-hosted git repository.

gaodayue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new f9a52f5  [Bug] Insert may leak DeltaWriter when re-analyzed (#3973)
f9a52f5 is described below

commit f9a52f5db4a3653c4a243082888509afa50de899
Author: Dayue Gao <[email protected]>
AuthorDate: Tue Jun 30 11:09:53 2020 +0800

    [Bug] Insert may leak DeltaWriter when re-analyzed (#3973)
---
 be/src/runtime/tablets_channel.cpp                         | 2 +-
 fe/src/main/java/org/apache/doris/analysis/InsertStmt.java | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/runtime/tablets_channel.cpp 
b/be/src/runtime/tablets_channel.cpp
index 0e25fff..2a125af 100644
--- a/be/src/runtime/tablets_channel.cpp
+++ b/be/src/runtime/tablets_channel.cpp
@@ -248,7 +248,7 @@ Status TabletsChannel::_open_all_writers(const 
PTabletWriterOpenRequest& params)
         _tablet_writers.emplace(tablet.tablet_id(), writer);
     }
     _s_tablet_writer_count += _tablet_writers.size();
-    DCHECK(_tablet_writers.size() == params.tablets_size());
+    DCHECK_EQ(_tablet_writers.size(), params.tablets_size());
     return Status::OK();
 }
 
diff --git a/fe/src/main/java/org/apache/doris/analysis/InsertStmt.java 
b/fe/src/main/java/org/apache/doris/analysis/InsertStmt.java
index 814dc49..70f94f3 100644
--- a/fe/src/main/java/org/apache/doris/analysis/InsertStmt.java
+++ b/fe/src/main/java/org/apache/doris/analysis/InsertStmt.java
@@ -744,6 +744,7 @@ public class InsertStmt extends DdlStmt {
     @Override
     public void reset() {
         super.reset();
+        targetPartitionIds.clear();
         queryStmt.reset();
         resultExprs.clear();
         exprByName.clear();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to