alibaba / alibaba/DataX

MongoDB参数解析适配问题

Open
#2,241 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

在使用DataX这个工具时发现针对于Java代码MongoDB建立连接时只做了简单的用户名密码解析但是携带的一些其它参数并未进行配置,例如: readPreference=secondaryPreferred&readPreferenceTags=role-cmgo:readonly-group 这些参数并未被适配

DataX MongoDBReader地址: https://github.com/alibaba/DataX/blob/master/mongodbreader/src/main/java/com/alibaba/datax/plugin/reader/mongodbreader/MongoDBReader.java

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with mongodbreader/src/main/java/com/alibaba/datax/plugin/reader/mongodbreader/MongoDBReader.java and inspect how MongoDB connection parameters are parsed beyond the username and password. Verify how readPreference and readPreferenceTags are represented in the connection configuration; the work is done when these parameters are adapted and honored when establishing the MongoDB connection.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.