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

[WIP](Load) Supports synchronizing MySQL data through Cdc #35181

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

JNSimba
Copy link
Member

@JNSimba JNSimba commented May 22, 2024

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

JNSimba added 2 commits May 22, 2024 11:03
# 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
@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.

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@JNSimba JNSimba marked this pull request as draft May 22, 2024 03:35
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

JNSimba added 2 commits July 1, 2024 14:42
# 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
Copy link
Contributor

github-actions bot commented Jul 1, 2024

clang-tidy review says "All clean, LGTM! 👍"

JNSimba added 3 commits July 10, 2024 17:48
# 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
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

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

@@ -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>
Copy link
Contributor

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]

Suggested change
#include <signal.h>
#include <csignal>

@@ -943,6 +951,109 @@
}
}

static void handle_sigchld(int sig_no) {
for (;;) {
if (waitpid(-1, NULL, WNOHANG) == 0)
Copy link
Contributor

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]

Suggested change
if (waitpid(-1, NULL, WNOHANG) == 0)
if (waitpid(-1, nullptr, WNOHANG) == 0)

Comment on lines 956 to 957
if (waitpid(-1, NULL, WNOHANG) == 0)
break;
Copy link
Contributor

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]

Suggested change
if (waitpid(-1, NULL, WNOHANG) == 0)
break;
if (waitpid(-1, NULL, WNOHANG) == 0) {
break;
}

Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors

'shellcheck ' returned error 1 finding the following syntactical issues:

----------

In bin/stop_be.sh line 76:
    pgid=$(ps -o pgid= -p ${pid})
                          ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
    pgid=$(ps -o pgid= -p "${pid}")

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
----------

You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
  # shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.



shfmt errors
'shfmt ' found no issues.

@github-actions github-actions bot added the doing label Aug 1, 2024
Copy link
Contributor

github-actions bot commented Aug 1, 2024

sh-checker report

To get the full details, please check in the job output.

shellcheck errors

'shellcheck ' returned error 1 finding the following syntactical issues:

----------

In bin/stop_be.sh line 76:
    pgid=$(ps -o pgid= -p ${pid})
                          ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
    pgid=$(ps -o pgid= -p "${pid}")

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
----------

You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
  # shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.



shfmt errors
'shfmt ' found no issues.

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

@@ -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){
Copy link
Contributor

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]

Suggested change
if (waitpid(-1, NULL, WNOHANG) == 0){
if (waitpid(-1, nullptr, WNOHANG) == 0){

Copy link
Contributor

github-actions bot commented Aug 2, 2024

sh-checker report

To get the full details, please check in the job output.

shellcheck errors

'shellcheck ' returned error 1 finding the following syntactical issues:

----------

In bin/stop_be.sh line 76:
    pgid=$(eval echo $(ps -o pgid= -p ${pid}))
                     ^----------------------^ SC2046 (warning): Quote this to prevent word splitting.
                                      ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
    pgid=$(eval echo $(ps -o pgid= -p "${pid}"))

For more information:
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
----------

You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
  # shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.



shfmt errors
'shfmt ' found no issues.

Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors

'shellcheck ' returned error 1 finding the following syntactical issues:

----------

In bin/stop_be.sh line 76:
    pgid=$(eval echo $(ps -o pgid= -p ${pid}))
                     ^----------------------^ SC2046 (warning): Quote this to prevent word splitting.
                                      ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
    pgid=$(eval echo $(ps -o pgid= -p "${pid}"))

For more information:
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
----------

You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
  # shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.



shfmt errors
'shfmt ' found no issues.

Copy link
Contributor

sh-checker report

To get the full details, please check in the job output.

shellcheck errors

'shellcheck ' returned error 1 finding the following syntactical issues:

----------

In bin/stop_be.sh line 76:
    pgid=$(eval echo $(ps -o pgid= -p ${pid}))
                     ^----------------------^ SC2046 (warning): Quote this to prevent word splitting.
                                      ^----^ SC2086 (info): Double quote to prevent globbing and word splitting.

Did you mean: 
    pgid=$(eval echo $(ps -o pgid= -p "${pid}"))

For more information:
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
----------

You can address the above issues in one of three ways:
1. Manually correct the issue in the offending shell script;
2. Disable specific issues by adding the comment:
  # shellcheck disable=NNNN
above the line that contains the issue, where NNNN is the error code;
3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.



shfmt errors
'shfmt ' found no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants