You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "liaoxin01 (via GitHub)" <gi...@apache.org> on 2026/01/27 14:44:26 UTC

[PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

liaoxin01 opened a new pull request, #60284:
URL: https://github.com/apache/doris/pull/60284

   
   
   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Related PR: #60148
   
   Problem Summary:
   
   Problem:
   When TabletStream is destroyed without pre_close() being called (e.g., on_idle_timeout scenario), the _flush_token destructor calls shutdown() which triggers deadlock detection if called from the pool thread.
   
   Root cause:
   - on_idle_timeout() directly calls brpc::StreamClose() without calling LoadStream::close()
   - This triggers the destruction chain without calling pre_close() on TabletStreams
   - If flush tasks are still running, TabletStream may be destroyed in pool thread
   
   Solution:
   - Add IndexStream::~IndexStream() to ensure wait_for_flush_tasks() is called on all TabletStreams
   - Add TabletStream::wait_for_flush_tasks() to wait for all flush tasks to complete
   - This ensures _flush_token is properly handled before TabletStream destruction
   - Revert #60148  (shared_from_this) as it is no longer needed
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3808541149

   
   <details>
   <summary>TPC-H: <b>Total hot run time: 33039 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit cc77be5a6cda491b88c7772015000e6620a1b236, data reload: false
   
   ------ Round 1 ----------------------------------
   q1	17748	5216	5060	5060
   q2	2009	312	198	198
   q3	10217	1353	763	763
   q4	10219	950	335	335
   q5	7566	2111	1986	1986
   q6	224	183	151	151
   q7	900	746	616	616
   q8	9265	1374	1237	1237
   q9	5112	4849	4810	4810
   q10	6777	1937	1571	1571
   q11	500	296	270	270
   q12	342	396	234	234
   q13	17770	4039	3286	3286
   q14	238	250	220	220
   q15	888	811	829	811
   q16	687	670	634	634
   q17	643	801	469	469
   q18	6817	6690	6524	6524
   q19	1238	1010	646	646
   q20	415	362	238	238
   q21	2753	2119	2001	2001
   q22	1044	1028	979	979
   Total cold run time: 103372 ms
   Total hot run time: 33039 ms
   
   ----- Round 2, with runtime_filter_mode=off -----
   q1	5333	5321	5353	5321
   q2	264	344	263	263
   q3	2171	2673	2285	2285
   q4	1391	1741	1316	1316
   q5	4251	4258	4761	4258
   q6	263	213	175	175
   q7	2277	2072	1782	1782
   q8	2581	2454	2432	2432
   q9	7543	7564	7497	7497
   q10	2817	3001	2679	2679
   q11	566	525	449	449
   q12	707	755	592	592
   q13	3813	4226	3599	3599
   q14	302	338	317	317
   q15	862	810	826	810
   q16	681	727	672	672
   q17	1126	1360	1373	1360
   q18	8590	8087	7926	7926
   q19	939	896	928	896
   q20	2092	2253	2004	2004
   q21	4876	4573	4295	4295
   q22	1075	1011	962	962
   Total cold run time: 54520 ms
   Total hot run time: 51890 ms
   ```
   </details>
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3805904100

   
   <details>
   <summary>TPC-H: <b>Total hot run time: 32400 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit c36ec0e50c07c1a4a193f586ec2bb833de8b1e7e, data reload: false
   
   ------ Round 1 ----------------------------------
   q1	7828	5031	5012	5012
   q2	1600	339	196	196
   q3	1264	1287	721	721
   q4	2194	794	322	322
   q5	2042	1690	1729	1690
   q6	238	199	155	155
   q7	939	845	647	647
   q8	2112	1116	1080	1080
   q9	4980	4990	4885	4885
   q10	6898	1969	1594	1594
   q11	519	302	285	285
   q12	307	388	235	235
   q13	3577	4077	3217	3217
   q14	245	245	238	238
   q15	911	825	808	808
   q16	672	705	633	633
   q17	628	792	485	485
   q18	6802	6462	6395	6395
   q19	690	985	638	638
   q20	399	359	229	229
   q21	2607	1959	1944	1944
   q22	1053	1000	991	991
   Total cold run time: 48505 ms
   Total hot run time: 32400 ms
   
   ----- Round 2, with runtime_filter_mode=off -----
   q1	5342	5303	5287	5287
   q2	291	328	265	265
   q3	2198	2672	2299	2299
   q4	1403	1765	1310	1310
   q5	4361	4125	4236	4125
   q6	215	183	140	140
   q7	1914	1859	1742	1742
   q8	2485	2302	2310	2302
   q9	7029	7016	7012	7012
   q10	2650	2815	2431	2431
   q11	538	463	464	463
   q12	631	702	585	585
   q13	3554	4053	3245	3245
   q14	293	298	282	282
   q15	857	811	814	811
   q16	644	691	641	641
   q17	1088	1279	1349	1279
   q18	7470	7217	7274	7217
   q19	880	855	835	835
   q20	1964	2065	1907	1907
   q21	4533	4167	4187	4167
   q22	1049	1045	1011	1011
   Total cold run time: 51389 ms
   Total hot run time: 49356 ms
   ```
   </details>
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3805671019

   PR approved by at least one committer and no changes requested.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 merged PR #60284:
URL: https://github.com/apache/doris/pull/60284


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "Thearas (via GitHub)" <gi...@apache.org>.
Thearas commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3805627670

   
   Thank you for your contribution to Apache Doris.
   Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
   
   Please clearly describe your PR:
   1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
   2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
   3. What features were added. Why was this function added?
   4. Which code was refactored and why was this part of the code refactored?
   5. Which functions were optimized and what is the difference before and after the optimization?
       


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3805756060

   run buildall


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3808865684

   # BE Regression && UT Coverage Report
   Increment line coverage `86.49% (32/37)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/60284_cc77be5a6cda491b88c7772015000e6620a1b236_merge/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/60284_cc77be5a6cda491b88c7772015000e6620a1b236_merge/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 73.23% (26219/35804) |
   | Line Coverage     | 56.29% (278322/494457) |
   | Region Coverage   | 54.12% (233069/430675) |
   | Branch Coverage   | 55.76% (100400/180063) |


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3808476064

   run buildall


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3808691353

   # BE UT Coverage Report
   Increment line coverage `78.38% (29/37)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/cc77be5a6cda491b88c7772015000e6620a1b236_cc77be5a6cda491b88c7772015000e6620a1b236/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/cc77be5a6cda491b88c7772015000e6620a1b236_cc77be5a6cda491b88c7772015000e6620a1b236/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 52.76% (19270/36526) |
   | Line Coverage     | 36.11% (179000/495690) |
   | Region Coverage   | 32.56% (138810/426357) |
   | Branch Coverage   | 33.50% (60086/179347) |


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3805671307

   PR approved by anyone and no changes requested.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3806224511

   # BE UT Coverage Report
   Increment line coverage `77.78% (28/36)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/c36ec0e50c07c1a4a193f586ec2bb833de8b1e7e_c36ec0e50c07c1a4a193f586ec2bb833de8b1e7e/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/c36ec0e50c07c1a4a193f586ec2bb833de8b1e7e_c36ec0e50c07c1a4a193f586ec2bb833de8b1e7e/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 52.72% (19257/36526) |
   | Line Coverage     | 36.09% (178879/495690) |
   | Region Coverage   | 32.56% (138818/426357) |
   | Branch Coverage   | 33.48% (60047/179347) |


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #60284:
URL: https://github.com/apache/doris/pull/60284#discussion_r2732414853


##########
be/src/runtime/load_stream.h:
##########
@@ -42,7 +42,7 @@ class OlapTableSchemaParam;
 // origin_segid(index) -> new_segid(value in vector)
 using SegIdMapping = std::vector<uint32_t>;
 using FailedTablets = std::vector<std::pair<int64_t, Status>>;
-class TabletStream : public std::enable_shared_from_this<TabletStream> {
+class TabletStream {

Review Comment:
   TabletStream should have a destructor that calls wait_for_flush_tasks() to ensure flush tasks are properly handled before destruction. Currently, the code relies on IndexStream::~IndexStream() to call wait_for_flush_tasks() on all TabletStreams, but this creates a fragile dependency. If a TabletStream is ever destroyed outside of this path (e.g., if future code holds a separate shared_ptr reference), the flush tasks won't be waited for, potentially causing use-after-free issues with the raw 'this' pointer captured in lambdas.



##########
be/src/runtime/load_stream.cpp:
##########
@@ -294,21 +290,36 @@ Status TabletStream::_run_in_heavy_work_pool(std::function<Status()> fn) {
     return st;
 }
 
-void TabletStream::pre_close() {
+void TabletStream::wait_for_flush_tasks() {
+    {
+        std::lock_guard lock_guard(_lock);
+        if (_flush_tasks_done) {
+            return;
+        }
+        _flush_tasks_done = true;
+    }
+
     if (!_status.ok()) {
-        // cancel all pending tasks, wait all running tasks to finish
         _flush_token->shutdown();
         return;
     }
 
-    SCOPED_TIMER(_close_wait_timer);
-    _status.update(_run_in_heavy_work_pool([this]() {
+    // Use heavy_work_pool to avoid blocking bthread
+    auto st = _run_in_heavy_work_pool([this]() {
         _flush_token->wait();

Review Comment:
   There is a potential race condition between wait_for_flush_tasks() and append_data()/add_segment(). After _flush_tasks_done is set to true and the lock is released (line 300), new tasks could still be submitted via append_data() or add_segment() before _flush_token->wait() is called (line 309). While the expected usage pattern is that no data is appended after close(), there is no explicit check to prevent this. Consider adding a check for _flush_tasks_done in append_data() and add_segment() to reject new submissions after wait_for_flush_tasks() has been called, similar to the _status check at the beginning of these methods.



##########
be/src/runtime/load_stream.cpp:
##########
@@ -294,21 +290,36 @@ Status TabletStream::_run_in_heavy_work_pool(std::function<Status()> fn) {
     return st;
 }
 
-void TabletStream::pre_close() {
+void TabletStream::wait_for_flush_tasks() {
+    {
+        std::lock_guard lock_guard(_lock);
+        if (_flush_tasks_done) {
+            return;
+        }
+        _flush_tasks_done = true;
+    }
+
     if (!_status.ok()) {
-        // cancel all pending tasks, wait all running tasks to finish
         _flush_token->shutdown();
         return;
     }
 
-    SCOPED_TIMER(_close_wait_timer);
-    _status.update(_run_in_heavy_work_pool([this]() {
+    // Use heavy_work_pool to avoid blocking bthread
+    auto st = _run_in_heavy_work_pool([this]() {
         _flush_token->wait();
         return Status::OK();
-    }));
-    // it is necessary to check status after wait_func,
-    // for create_rowset could fail during add_segment when loading to MOW table,
-    // in this case, should skip close to avoid submit_calc_delete_bitmap_task which could cause coredump.
+    });
+    if (!st.ok()) {
+        // If heavy_work_pool is unavailable, fall back to shutdown
+        // which will cancel pending tasks and wait for running tasks
+        _flush_token->shutdown();
+        _status.update(st);
+    }
+}

Review Comment:
   The SCOPED_TIMER for _close_wait_timer was removed from the flush token wait logic. Previously, the time spent waiting for flush tasks was tracked under CloseWaitTime, but now wait_for_flush_tasks() has no timing instrumentation. This means the time spent waiting for flush tasks to complete is no longer visible in performance profiles. Consider adding timing instrumentation to wait_for_flush_tasks() if this metric is important for performance monitoring.



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3806658027

   # BE Regression && UT Coverage Report
   Increment line coverage `86.11% (31/36)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/60284_c36ec0e50c07c1a4a193f586ec2bb833de8b1e7e_merge/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/60284_c36ec0e50c07c1a4a193f586ec2bb833de8b1e7e_merge/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 73.12% (26181/35804) |
   | Line Coverage     | 56.17% (277745/494457) |
   | Region Coverage   | 53.94% (232306/430675) |
   | Branch Coverage   | 55.59% (100093/180063) |


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3809262730

   # BE Regression && UT Coverage Report
   Increment line coverage `86.49% (32/37)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/60284_cc77be5a6cda491b88c7772015000e6620a1b236_merge/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/60284_cc77be5a6cda491b88c7772015000e6620a1b236_merge/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 73.23% (26219/35804) |
   | Line Coverage     | 56.29% (278326/494457) |
   | Region Coverage   | 54.12% (233085/430675) |
   | Branch Coverage   | 55.76% (100401/180063) |


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3817581142

   PR approved by at least one committer and no changes requested.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3808586694

   
   <details>
   <summary>ClickBench: <b>Total hot run time: 28.37 s</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit cc77be5a6cda491b88c7772015000e6620a1b236, data reload: false
   
   query1	0.06	0.04	0.05
   query2	0.11	0.05	0.04
   query3	0.26	0.09	0.08
   query4	1.60	0.11	0.12
   query5	0.27	0.24	0.25
   query6	1.16	0.67	0.67
   query7	0.04	0.03	0.02
   query8	0.05	0.04	0.04
   query9	0.58	0.53	0.52
   query10	0.58	0.56	0.57
   query11	0.15	0.10	0.10
   query12	0.14	0.11	0.10
   query13	0.63	0.62	0.61
   query14	1.05	1.04	1.04
   query15	0.88	0.86	0.88
   query16	0.40	0.40	0.39
   query17	1.17	1.10	1.13
   query18	0.23	0.21	0.21
   query19	2.13	2.03	2.01
   query20	0.02	0.02	0.02
   query21	15.40	0.26	0.14
   query22	5.28	0.05	0.06
   query23	16.10	0.27	0.11
   query24	2.46	0.28	0.72
   query25	0.12	0.13	0.06
   query26	0.15	0.13	0.13
   query27	0.06	0.06	0.04
   query28	4.67	1.12	0.96
   query29	12.55	3.94	3.17
   query30	0.27	0.12	0.14
   query31	2.82	0.63	0.41
   query32	3.23	0.59	0.51
   query33	3.23	3.22	3.25
   query34	16.19	5.42	4.75
   query35	4.78	4.79	4.83
   query36	0.69	0.50	0.49
   query37	0.11	0.07	0.06
   query38	0.07	0.04	0.04
   query39	0.05	0.03	0.03
   query40	0.18	0.17	0.15
   query41	0.09	0.04	0.03
   query42	0.05	0.03	0.04
   query43	0.04	0.04	0.04
   Total cold run time: 100.1 s
   Total hot run time: 28.37 s
   ```
   </details>
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "liaoxin01 (via GitHub)" <gi...@apache.org>.
liaoxin01 commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3805640975

   run buildall


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3805782775

   
   <details>
   <summary>TPC-H: <b>Total hot run time: 32864 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 86e21d6cdc818f195d0e7018ff8f9e00d1d2cc31, data reload: false
   
   ------ Round 1 ----------------------------------
   q1	17648	5202	5063	5063
   q2	2076	319	213	213
   q3	10177	1308	754	754
   q4	10205	830	313	313
   q5	7515	2211	1898	1898
   q6	197	181	151	151
   q7	888	735	596	596
   q8	9264	1456	1085	1085
   q9	5185	4766	5160	4766
   q10	6771	1962	1575	1575
   q11	518	294	291	291
   q12	335	372	225	225
   q13	17802	4137	3215	3215
   q14	237	238	222	222
   q15	906	823	826	823
   q16	672	722	625	625
   q17	634	832	447	447
   q18	6715	6610	7497	6610
   q19	1272	1028	656	656
   q20	423	360	243	243
   q21	2927	2324	2069	2069
   q22	1119	1126	1024	1024
   Total cold run time: 103486 ms
   Total hot run time: 32864 ms
   
   ----- Round 2, with runtime_filter_mode=off -----
   q1	5636	5737	5508	5508
   q2	275	343	254	254
   q3	2352	2859	2436	2436
   q4	1459	1808	1488	1488
   q5	4721	4579	4716	4579
   q6	231	182	138	138
   q7	2022	1918	1868	1868
   q8	2566	2356	2339	2339
   q9	7642	7532	7593	7532
   q10	2850	3080	2667	2667
   q11	526	486	450	450
   q12	669	729	598	598
   q13	3914	4030	3213	3213
   q14	268	284	257	257
   q15	853	801	787	787
   q16	636	664	638	638
   q17	1075	1293	1270	1270
   q18	7697	7386	7384	7384
   q19	851	800	839	800
   q20	2017	2056	1888	1888
   q21	4498	4223	4104	4104
   q22	1060	1076	962	962
   Total cold run time: 53818 ms
   Total hot run time: 51160 ms
   ```
   </details>
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](load_stream) Fix flush token deadlock by ensuring wait_for_flush_tasks is called before destruction [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #60284:
URL: https://github.com/apache/doris/pull/60284#issuecomment-3805996470

   
   <details>
   <summary>ClickBench: <b>Total hot run time: 28.29 s</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit c36ec0e50c07c1a4a193f586ec2bb833de8b1e7e, data reload: false
   
   query1	0.06	0.05	0.05
   query2	0.09	0.05	0.04
   query3	0.26	0.08	0.08
   query4	1.60	0.11	0.11
   query5	0.27	0.25	0.26
   query6	1.16	0.67	0.68
   query7	0.03	0.02	0.03
   query8	0.05	0.04	0.03
   query9	0.56	0.51	0.48
   query10	0.56	0.55	0.54
   query11	0.15	0.09	0.10
   query12	0.14	0.10	0.11
   query13	0.64	0.61	0.62
   query14	1.06	1.06	1.05
   query15	0.88	0.86	0.86
   query16	0.39	0.39	0.40
   query17	1.16	1.09	1.11
   query18	0.22	0.22	0.21
   query19	2.01	1.97	2.06
   query20	0.02	0.01	0.02
   query21	15.40	0.25	0.14
   query22	5.44	0.05	0.05
   query23	16.21	0.27	0.11
   query24	1.17	0.46	0.17
   query25	0.09	0.07	0.07
   query26	0.15	0.14	0.13
   query27	0.09	0.04	0.06
   query28	3.30	1.15	0.96
   query29	12.54	3.95	3.20
   query30	0.27	0.15	0.12
   query31	2.81	0.64	0.39
   query32	3.23	0.60	0.51
   query33	3.20	3.30	3.38
   query34	16.18	5.45	4.73
   query35	4.77	4.85	4.88
   query36	0.65	0.50	0.49
   query37	0.11	0.07	0.07
   query38	0.07	0.04	0.04
   query39	0.05	0.03	0.03
   query40	0.18	0.16	0.15
   query41	0.09	0.03	0.02
   query42	0.04	0.03	0.03
   query43	0.04	0.04	0.04
   Total cold run time: 97.39 s
   Total hot run time: 28.29 s
   ```
   </details>
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org