-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[WIP](Load) Supports synchronizing MySQL data through Cdc #35181
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # fe/fe-core/src/main/java/org/apache/doris/catalog/BuiltinTableValuedFunctions.java # fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/InsertTask.java # fe/fe-core/src/main/java/org/apache/doris/job/manager/JobManager.java # fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/visitor/TableValuedFunctionVisitor.java # fe/fe-core/src/main/java/org/apache/doris/tablefunction/TableValuedFunctionIf.java # gensrc/proto/internal_service.proto
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
# Conflicts: # fe/fe-common/src/main/java/org/apache/doris/common/Config.java # fe/fe-common/src/main/java/org/apache/doris/common/FeMetaVersion.java # fe/fe-core/src/main/java/org/apache/doris/catalog/Database.java # fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java # fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
clang-tidy review says "All clean, LGTM! 👍" |
# Conflicts: # fe/fe-common/src/main/java/org/apache/doris/common/FeMetaVersion.java # fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this 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
@@ -37,8 +37,16 @@ | |||
#include <gen_cpp/segment_v2.pb.h> | |||
#include <gen_cpp/types.pb.h> | |||
#include <google/protobuf/stubs/callback.h> | |||
#include <signal.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: inclusion of deprecated C++ header 'signal.h'; consider using 'csignal' instead [modernize-deprecated-headers]
#include <signal.h> | |
#include <csignal> |
be/src/service/internal_service.cpp
Outdated
@@ -943,6 +951,109 @@ | |||
} | |||
} | |||
|
|||
static void handle_sigchld(int sig_no) { | |||
for (;;) { | |||
if (waitpid(-1, NULL, WNOHANG) == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use nullptr [modernize-use-nullptr]
if (waitpid(-1, NULL, WNOHANG) == 0) | |
if (waitpid(-1, nullptr, WNOHANG) == 0) |
be/src/service/internal_service.cpp
Outdated
if (waitpid(-1, NULL, WNOHANG) == 0) | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: statement should be inside braces [readability-braces-around-statements]
if (waitpid(-1, NULL, WNOHANG) == 0) | |
break; | |
if (waitpid(-1, NULL, WNOHANG) == 0) { | |
break; | |
} |
|
|
There was a problem hiding this 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
be/src/service/internal_service.cpp
Outdated
@@ -943,6 +951,156 @@ void PInternalService::test_jdbc_connection(google::protobuf::RpcController* con | |||
} | |||
} | |||
|
|||
static void handle_sigchld(int sig_no) { | |||
for (;;) { | |||
if (waitpid(-1, NULL, WNOHANG) == 0){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use nullptr [modernize-use-nullptr]
if (waitpid(-1, NULL, WNOHANG) == 0){ | |
if (waitpid(-1, nullptr, WNOHANG) == 0){ |
|
|
|
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...