Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pipelineX](runtime filter) Fix task timeout caused by runtime filter(#33332) #33369

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

Gabriel39
Copy link
Contributor

Proposed changes

pick #33332

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@yiguolei yiguolei merged commit a8232c6 into apache:branch-2.1 Apr 8, 2024
9 of 10 checks passed
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

runtime_filter->set_filter_timer(filter_timer);
ExecEnv::GetInstance()->runtime_filter_timer_queue()->push_filter_timer(filter_timer);
}
void RuntimeFilterTimerQueue::start() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'start' can be made static [readability-convert-member-functions-to-static]

be/src/pipeline/pipeline_x/dependency.h:236:

-     void start();
+     static void start();

@@ -188,6 +189,17 @@ class PipelineXTask : public PipelineTask {
return nullptr;
}

Dependency* _runtime_filter_blocked_dependency() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method '_runtime_filter_blocked_dependency' can be made static [readability-convert-member-functions-to-static]

Suggested change
Dependency* _runtime_filter_blocked_dependency() {
static Dependency* _runtime_filter_blocked_dependency() {

void init_runtime_filter_dependency(
std::vector<std::shared_ptr<pipeline::RuntimeFilterDependency>>&
runtime_filter_dependencies,
const int id, const int node_id, const std::string& name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'id' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const int id, const int node_id, const std::string& name);
int id, const int node_id, const std::string& name);

void init_runtime_filter_dependency(
std::vector<std::shared_ptr<pipeline::RuntimeFilterDependency>>&
runtime_filter_dependencies,
const int id, const int node_id, const std::string& name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'node_id' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const int id, const int node_id, const std::string& name);
const int id, int node_id, const std::string& name);

@yiguolei yiguolei mentioned this pull request Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants