gaodayue opened a new issue #3972: URL: https://github.com/apache/incubator-doris/issues/3972
**Describe the bug** When running BE in debug mode, we found DCHECK at line 251 may fail sometime https://github.com/apache/incubator-doris/blob/d82d48da877f63a951cef83ddb44ec8adde9fe22/be/src/runtime/tablets_channel.cpp#L225-L252 After investigation we found it's caused by FE sending duplicate TOlapTablePartition in TOlapTableSink.partition. In prod cluster with DCHECK disabled, it will cause memory leak of DeltaWriter instances. **To Reproduce** 1) create test table ``` CREATE TABLE `t1` ( `siteid` int(11) NULL DEFAULT "10" COMMENT "", `citycode` smallint(6) NULL COMMENT "", `username` varchar(32) NULL DEFAULT "" COMMENT "", `pv` bigint(20) SUM NULL DEFAULT "0" COMMENT "" ) ENGINE=OLAP AGGREGATE KEY(`siteid`, `citycode`, `username`) COMMENT "OLAP" DISTRIBUTED BY HASH(`siteid`) BUCKETS 3 PROPERTIES ( "replication_num" = "3" ); ``` 2) stream load some test data 3) execute an insert statement that can trigger re-analyze ``` insert into t1 select 1 + 5 as siteid, citycode, username, 0 from t1; ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
