You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "dockerzhang (via GitHub)" <gi...@apache.org> on 2023/02/15 02:22:56 UTC
[GitHub] [inlong] dockerzhang commented on a diff in pull request #7366: [INLONG-7365][Agent] The username for the MongoDB connector is missing
dockerzhang commented on code in PR #7366:
URL: https://github.com/apache/inlong/pull/7366#discussion_r1106579913
##########
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/reader/MongoDBReader.java:
##########
@@ -298,7 +302,8 @@ private Properties buildMongoConnectorConfig(JobProfile jobConf) {
Properties props = builder.build().asProperties();
props.setProperty("offset.storage.file.filename", offsetStoreFileName);
props.setProperty("connector.class", MongoDbConnector.class.getCanonicalName());
- props.setProperty("name", instanceId);
+ props.setProperty("name", "engine" + instanceId);
+ props.setProperty("mongodb.name", "mongodb" + instanceId);
Review Comment:
ditto
##########
inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/reader/MongoDBReader.java:
##########
@@ -298,7 +302,8 @@ private Properties buildMongoConnectorConfig(JobProfile jobConf) {
Properties props = builder.build().asProperties();
props.setProperty("offset.storage.file.filename", offsetStoreFileName);
props.setProperty("connector.class", MongoDbConnector.class.getCanonicalName());
- props.setProperty("name", instanceId);
+ props.setProperty("name", "engine" + instanceId);
Review Comment:
do we need a splitter between the "engine" and `instanceId`?
--
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@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org