You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "Mryange (via GitHub)" <gi...@apache.org> on 2023/11/07 07:12:02 UTC

[PR] [only test] sink filter fin only RUNNABLE [doris]

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

   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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] [only test] sink filter fin only RUNNABLE [doris]

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

   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] [only test] sink filter fin only RUNNABLE [doris]

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

   (From new machine)TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 46.18 seconds
    stream load tsv:          555 seconds loaded 74807831229 Bytes, about 128 MB/s
    stream load json:         21 seconds loaded 2358488459 Bytes, about 107 MB/s
    stream load orc:          65 seconds loaded 1101869774 Bytes, about 16 MB/s
    stream load parquet:          33 seconds loaded 861443392 Bytes, about 24 MB/s
    insert into select:          28.9 seconds inserted 10000000 Rows, about 346K ops/s
    storage size: 17162156362 Bytes


-- 
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] [only test] sink filter fin only RUNNABLE [doris]

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

   TeamCity be ut coverage result:
    Function Coverage: 36.98% (8391/22692) 
    Line Coverage: 29.41% (67929/230994)
    Region Coverage: 28.10% (35152/125113)
    Branch Coverage: 24.88% (17962/72184)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/51c3a9c77706111da86d3327ce5e15abfdb41fc5_51c3a9c77706111da86d3327ce5e15abfdb41fc5/report/index.html


-- 
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] [only test] sink filter fin only RUNNABLE [doris]

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


##########
be/src/pipeline/pipeline_x/dependency.cpp:
##########
@@ -294,6 +315,18 @@
     return results;
 }
 
+void SetSharedState::set_probe_finished_children(int child_id) {

Review Comment:
   warning: method 'set_probe_finished_children' can be made static [readability-convert-member-functions-to-static]
   
   be/src/pipeline/pipeline_x/dependency.h:794:
   ```diff
   -     void set_probe_finished_children(int child_id);
   +     static void set_probe_finished_children(int child_id);
   ```
   



##########
be/src/pipeline/pipeline_x/dependency.cpp:
##########
@@ -21,10 +21,31 @@
 #include <mutex>
 
 #include "common/logging.h"
+#include "pipeline/pipeline_task.h"
+#include "pipeline/pipeline_x/pipeline_x_task.h"
 #include "runtime/memory/mem_tracker.h"
 
 namespace doris::pipeline {
 
+void Dependency::add_block_task(PipelineXTask* task) {

Review Comment:
   warning: method 'add_block_task' can be made static [readability-convert-member-functions-to-static]
   
   be/src/pipeline/pipeline_x/dependency.h:102:
   ```diff
   -     void add_block_task(PipelineXTask* task);
   +     static void add_block_task(PipelineXTask* task);
   ```
   



##########
be/src/pipeline/pipeline_x/dependency.cpp:
##########
@@ -21,10 +21,31 @@
 #include <mutex>
 
 #include "common/logging.h"
+#include "pipeline/pipeline_task.h"
+#include "pipeline/pipeline_x/pipeline_x_task.h"
 #include "runtime/memory/mem_tracker.h"
 
 namespace doris::pipeline {
 
+void Dependency::add_block_task(PipelineXTask* task) {
+    std::unique_lock<std::mutex> lc(_task_lock);
+    DCHECK(task->get_state() != PipelineTaskState::RUNNABLE);
+    DCHECK(avoid_using_blocked_queue(task->get_state()));
+    _block_task.push_back(task);
+}
+
+void Dependency::try_to_wake_up_task() {

Review Comment:
   warning: method 'try_to_wake_up_task' can be made static [readability-convert-member-functions-to-static]
   
   be/src/pipeline/pipeline_x/dependency.h:104:
   ```diff
   -     void try_to_wake_up_task();
   +     static void try_to_wake_up_task();
   ```
   



##########
be/src/pipeline/pipeline_x/pipeline_x_task.h:
##########
@@ -70,56 +70,64 @@
     // must be call after all pipeline task is finish to release resource
     Status close(Status exec_status) override;
 
+    Dependency* read_blocked_dependency() {
+        for (auto* op_dep : _read_dependencies) {
+            _blocked_dep = op_dep->read_blocked_by();
+            if (_blocked_dep != nullptr) {
+                _blocked_dep->start_read_watcher();
+                return _blocked_dep;
+            }
+        }
+        return nullptr;
+    }
+
     bool source_can_read() override {
         if (_dry_run) {
             return true;
         }
-        for (auto* op_dep : _read_dependencies) {
-            auto* dep = op_dep->read_blocked_by();
-            if (dep != nullptr) {
-                dep->start_read_watcher();
-                push_blocked_task_to_dependency(dep);
-                return false;
-            }
+        return read_blocked_dependency() == nullptr;
+    }
+
+    Dependency* filter_blocked_dependency() {
+        _blocked_dep = _filter_dependency->filter_blocked_by();
+        if (_blocked_dep != nullptr) {
+            return _blocked_dep;
         }
-        return true;
+        return nullptr;
     }
 
     bool runtime_filters_are_ready_or_timeout() override {
-        auto* dep = _filter_dependency->filter_blocked_by();
-        if (dep != nullptr) {
-            push_blocked_task_to_dependency(dep);
-            return false;
-        }
-        return true;
+        return filter_blocked_dependency() == nullptr;
     }
 
-    bool sink_can_write() override {
-        auto* dep = _write_dependencies->write_blocked_by();
-        if (dep != nullptr) {
-            dep->start_write_watcher();
-            push_blocked_task_to_dependency(dep);
-            return false;
+    Dependency* write_blocked_dependency() {
+        _blocked_dep = _write_dependencies->write_blocked_by();
+        if (_blocked_dep != nullptr) {
+            static_cast<WriteDependency*>(_blocked_dep)->start_write_watcher();
+            return _blocked_dep;
         }
-        return true;
+        return nullptr;
     }
 
+    bool sink_can_write() override { return write_blocked_dependency() == nullptr; }
+
     Status finalize() override;
 
     std::string debug_string() override;
 
-    bool is_pending_finish() override {
+    Dependency* finish_blocked_dependency() {

Review Comment:
   warning: method 'finish_blocked_dependency' can be made static [readability-convert-member-functions-to-static]
   
   ```suggestion
       static Dependency* finish_blocked_dependency() {
   ```
   



##########
be/src/pipeline/pipeline_x/pipeline_x_task.h:
##########
@@ -70,56 +70,64 @@ class PipelineXTask : public PipelineTask {
     // must be call after all pipeline task is finish to release resource
     Status close(Status exec_status) override;
 
+    Dependency* read_blocked_dependency() {

Review Comment:
   warning: method 'read_blocked_dependency' can be made static [readability-convert-member-functions-to-static]
   
   ```suggestion
       static Dependency* read_blocked_dependency() {
   ```
   



-- 
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] [only test] sink filter fin only RUNNABLE [doris]

Posted by "Mryange (via GitHub)" <gi...@apache.org>.
Mryange closed pull request #26509: [only test] sink filter fin  only RUNNABLE
URL: https://github.com/apache/doris/pull/26509


-- 
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] [only test] sink filter fin only RUNNABLE [doris]

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

   (From new machine)TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 45.24 seconds
    stream load tsv:          553 seconds loaded 74807831229 Bytes, about 129 MB/s
    stream load json:         20 seconds loaded 2358488459 Bytes, about 112 MB/s
    stream load orc:          65 seconds loaded 1101869774 Bytes, about 16 MB/s
    stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
    insert into select:          28.8 seconds inserted 10000000 Rows, about 347K ops/s
    storage size: 17162111915 Bytes


-- 
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] [only test] sink filter fin only RUNNABLE [doris]

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

   TeamCity be ut coverage result:
    Function Coverage: 36.99% (8393/22692) 
    Line Coverage: 29.40% (67917/231002)
    Region Coverage: 28.10% (35159/125118)
    Branch Coverage: 24.90% (17972/72186)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/6f844cb5c2ca1cf817b7e5bb537cb601623731bb_6f844cb5c2ca1cf817b7e5bb537cb601623731bb/report/index.html


-- 
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] [only test] sink filter fin only RUNNABLE [doris]

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

   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