-
Notifications
You must be signed in to change notification settings - Fork 642
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
[ISSUE #5039]support full sync of mysql #5038
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0374ca3
use conf instead of resource
sodaRyCN f040cf7
prepare for full and check
sodaRyCN 8096aa3
more and more
sodaRyCN 43c1b66
mysql type for read
sodaRyCN 6f093d3
mysql type for read
sodaRyCN f29dd7b
close to finish full read and begin full write
sodaRyCN dcfc348
do full write
sodaRyCN 59e16c9
prepare for full write
sodaRyCN bdd91e1
close to finish full read and begin full write
sodaRyCN 3a08039
close to finish full read and begin full write
sodaRyCN 37e7078
close to finish full read and begin full write
sodaRyCN 7d54630
fix commit execute
sodaRyCN 0d7a718
fix checkstyle and license
sodaRyCN 540e5bd
fix checkstyle and license
sodaRyCN 23b3585
fix checkstyle and license
sodaRyCN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one or more | ||
~ contributor license agreements. See the NOTICE file distributed with | ||
~ this work for additional information regarding copyright ownership. | ||
~ The ASF licenses this file to You under the Apache License, Version 2.0 | ||
~ (the "License"); you may not use this file except in compliance with | ||
~ the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<Configuration status="debug" monitorInterval="60"> | ||
<Appenders> | ||
<Console name="console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t] %c{1}(%F:%L) - %m%n"/> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
<AsyncRoot level="debug" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncRoot> | ||
|
||
<AsyncLogger name="retry" level="info" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="retryAppender"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="httpMonitor" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="tcpMonitor" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="appMonitor" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="cmd" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="message" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="batchMessage" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="http" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="metaStorage" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="acl" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="org.apache.eventmesh.runtime" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="org.apache.rocketmq" level="INFO" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="RocketmqClient" level="INFO" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="RocketmqRemoting" level="INFO" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="RocketmqCommon" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="sessionLogger" level="debug" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="subscribeLogger" level="info" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="com.alipay.sofa.jraft" level="info" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
<AsyncLogger name="io.grpc.netty" level="info" additivity="false" includeLocation="true"> | ||
<AppenderRef ref="console"/> | ||
</AsyncLogger> | ||
|
||
</Loggers> | ||
</Configuration> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
eventmesh-common/src/main/java/org/apache/eventmesh/common/AbstractComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.common; | ||
|
||
import java.util.concurrent.atomic.AtomicBoolean; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
|
||
@Slf4j | ||
public abstract class AbstractComponent implements ComponentLifeCycle { | ||
private final AtomicBoolean started = new AtomicBoolean(false); | ||
private final AtomicBoolean stopped = new AtomicBoolean(false); | ||
|
||
@Override | ||
public void start() throws Exception { | ||
if (!started.compareAndSet(false, true)) { | ||
log.info("component [{}] has started", this.getClass()); | ||
return; | ||
} | ||
log.info("component [{}] will start", this.getClass()); | ||
run(); | ||
log.info("component [{}] started successfully", this.getClass()); | ||
} | ||
|
||
@Override | ||
public void stop() throws Exception { | ||
if (!stopped.compareAndSet(false, true)) { | ||
log.info("component [{}] has stopped", this.getClass()); | ||
return; | ||
} | ||
log.info("component [{}] will stop", this.getClass()); | ||
shutdown(); | ||
log.info("component [{}] stopped successfully", this.getClass()); | ||
} | ||
|
||
protected abstract void run() throws Exception; | ||
|
||
protected abstract void shutdown() throws Exception; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...esh-common/src/main/java/org/apache/eventmesh/common/config/connector/rdb/JdbcConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.eventmesh.common.config.connector.rdb; | ||
|
||
import org.apache.eventmesh.common.config.connector.rdb.canal.RdbDBDefinition; | ||
|
||
import java.util.Set; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class JdbcConfig { | ||
private String url; | ||
|
||
private String dbAddress; | ||
|
||
private int dbPort; | ||
|
||
private String userName; | ||
|
||
private String passWord; | ||
|
||
private Set<RdbDBDefinition> databases; | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
mysql-connector-j
artifact withimplementation
namespace introduces incompatible license.I will submit a PR and add
The GNU General Public License, v2 with Universal FOSS Exception, v1.0
indeniedLicenses
later.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.
Please see #5043