alibaba / alibaba/DataX

[mongodbreader] 副本集模式怎么只允许读Secondary节点?

Open
#72 1 comment 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

用了readPreference参数无效果,看文档好像也没有相关参数。

如果我直接指定host为Secondary的地址,结果还是会走到primary上面执行

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the mongodbreader entry point and inspect how the readPreference parameter and host are passed into the MongoDB connection. Reproduce the replica-set case described in the issue, then verify that a secondary-only preference routes reads to Secondary rather than Primary.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.