MongoDB Atlas Replica Set Connector issue
- Lingua principale
- Python
- Stelle
- 22.1k
- Fork
- 5.3k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
### Connector Name
mongoDB
### Connector Version
2.0.7
### What step the error happened?
Configuring a new connector
### Relevant information
i am trying to connect to my source mongo DB however it's throwing an error .it's sharded clusters M30 .
### Relevant log output
```shell
hould generate annotations AnnotationKeyword
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO main c.m.i.d.l.SLF4JLogger(info):71 MongoClient with metadata {"application": {"name": "r2d-stg2-atl-01"}, "driver": {"name": "mongo-java-driver|sync|Airbyte", "version": "4.11.0"}, "os": {"type": "Linux", "name": "Linux", "architecture": "aarch64", "version": "6.10.14-linuxkit"}, "platform": "Java/Amazon.com Inc./21.0.6+7-LTS"} created with settings MongoClientSettings{readPreference=ReadPreference{name=secondaryPreferred, hedgeOptions=null}, writeConcern=WriteConcern{w=null, wTimeout=null ms, journal=null}, retryWrites=true, retryReads=true, readConcern=ReadConcern{level=null}, credential=MongoCredential{mechanism=null, userName='shailendra_garg', source='admin', password=, mechanismProperties=}, transportSettings=null, streamFactoryFactory=null, commandListeners=[], codecRegistry=ProvidersCodecRegistry{codecProviders=[ValueCodecProvider{}, BsonValueCodecProvider{}, DBRefCodecProvider{}, DBObjectCodecProvider{}, DocumentCodecProvider{}, CollectionCodecProvider{}, IterableCodecProvider{}, MapCodecProvider{}, GeoJsonCodecProvider{}, GridFSFileCodecProvider{}, Jsr310CodecProvider{}, JsonObjectCodecProvider{}, BsonCodecProvider{}, EnumCodecProvider{}, com.mongodb.client.model.mql.ExpressionCodecProvider@ba1f559, com.mongodb.Jep395RecordCodecProvider@3f4f9acd, com.mongodb.KotlinCodecProvider@46baf579]}, loggerSettings=LoggerSettings{maxDocumentLength=1000}, clusterSettings={hosts=[127.0.0.1:27017], srvHost=r2d-stg2-atl-01.thato.mongodb.net, srvServiceName=mongodb, mode=MULTIPLE, requiredClusterType=UNKNOWN, requiredReplicaSetName='null', serverSelector='null', clusterListeners='[]', serverSelectionTimeout='30000 ms', localThreshold='15 ms'}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=10000, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=[], maxConnecting=2}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverListeners='[]', serverMonitorListeners='[]'}, sslSettings=SslSettings{enabled=true, invalidHostNameAllowed=false, context=null}, applicationName='r2d-stg2-atl-01', compressorList=[], uuidRepresentation=UNSPECIFIED, serverApi=null, autoEncryptionSettings=null, dnsClient=null, inetAddressResolver=null, contextProvider=null}
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO main c.m.i.d.l.SLF4JLogger(info):71 No server chosen by ReadPreferenceServerSelector{readPreference=primary} from cluster description ClusterDescription{type=UNKNOWN, connectionMode=MULTIPLE, serverDescriptions=[]}. Waiting for 30000 ms before timing out
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-02-01.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-01-01.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-01-02.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-02-00.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-01-00.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-00-00.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-00-01.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-00-02.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-srv-r2d-stg2-atl-01.thato.mongodb.net c.m.i.d.l.SLF4JLogger(info):71 Adding discovered server r2d-stg2-atl-01-shard-02-02.thato.mongodb.net:27016 to client view of cluster
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-r2d-stg2-atl-01-shard-02-02.thato.mongodb.net:27016 c.m.i.d.l.SLF4JLogger(info):71 Monitor thread successfully connected to server with description ServerDescription{address=r2d-stg2-atl-01-shard-02-02.thato.mongodb.net:27016, type=SHARD_ROUTER, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=21, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=193325375}
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-r2d-stg2-atl-01-shard-02-00.thato.mongodb.net:27016 c.m.i.d.l.SLF4JLogger(info):71 Monitor thread successfully connected to server with description ServerDescription{address=r2d-stg2-atl-01-shard-02-00.thato.mongodb.net:27016, type=SHARD_ROUTER, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=21, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=179129417}
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-r2d-stg2-atl-01-shard-02-01.thato.mongodb.net:27016 c.m.i.d.l.SLF4JLogger(info):71 Monitor thread successfully connected to server with description ServerDescription{address=r2d-stg2-atl-01-shard-02-01.thato.mongodb.net:27016, type=SHARD_ROUTER, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=21, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=195728667}
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-r2d-stg2-atl-01-shard-02-02.thato.mongodb.net:27016 c.m.i.d.l.SLF4JLogger(info):71 Discovered cluster type of SHARDED
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-r2d-stg2-atl-01-shard-00-01.thato.mongodb.net:27016 c.m.i.d.l.SLF4JLogger(info):71 Monitor thread successfully connected to server with description ServerDescription{address=r2d-stg2-atl-01-shard-00-01.thato.mongodb.net:27016, type=SHARD_ROUTER, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=21, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=248864708}
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-r2d-stg2-atl-01-shard-00-02.thato.mongodb.net:27016 c.m.i.d.l.SLF4JLogger(info):71 Monitor thread successfully connected to server with description ServerDescription{address=r2d-stg2-atl-01-shard-00-02.thato.mongodb.net:27016, type=SHARD_ROUTER, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=21, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=258302542}
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO cluster-ClusterId{value='69ae31950e029e6ae6a31dc1', description='r2d-stg2-atl-01'}-r2d-stg2-atl-01-shard-00-00.thato.mongodb.net:27016 c.m.i.d.l.SLF4JLogger(info):71 Monitor thread successfully connected to server with description ServerDescription{address=r2d-stg2-atl-01-shard-00-00.thato.mongodb.net:27016, type=SHARD_ROUTER, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=21, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=262684250}
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO main i.a.i.s.m.MongoDbSource(check):82 Found authorized collections in database: c3po-progress
2026-03-08 22:33:58 ERROR 2026-03-08 22:33:58 error ERROR main i.a.i.s.m.MongoDbSource(check):101 Target MongoDB instance is not a replica set cluster.
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO main i.a.c.i.b.IntegrationRunner(runInternal):224 Completed integration: io.airbyte.integrations.source.mongodb.MongoDbSource
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info INFO main i.a.i.s.m.MongoDbSource(main):55 completed source: class io.airbyte.integrations.source.mongodb.MongoDbSource
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info Checking for optional control message...
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info Optional control message not found. Skipping...
2026-03-08 22:33:58 INFO 2026-03-08 22:33:58 info Writing output of b2e713cd-cc36-4c0a-b5bd-b47cb8a0561e_4ce2d7ae-78ae-49b6-ab7a-abf80dd1f9f7_0_check to the doc store
2026-03-08 22:33:59 INFO 2026-03-08 22:33:59 info Marking workload b2e713cd-cc36-4c0a-b5bd-b47cb8a0561e_4ce2d7ae-78ae-49b6-ab7a-abf80dd1f9f7_0_check as successful
2026-03-08 22:33:59 INFO 2026-03-08 22:33:59 info
2026-03-08 22:33:59 INFO 2026-03-08 22:33:59 info Deliberately exiting process with code 0.
2026-03-08 22:33:59 INFO 2026-03-08 22:33:59 info ----- END CHECK -----
2026-03-08 22:33:59 INFO 2026-03-08 22:33:59 info
```
### Contribute
- [ ] Yes, I want to contribute
---
**Internal Tracking:** https://github.com/airbytehq/oncall/issues/11557
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.