starrysky9959 opened a new issue, #10171: URL: https://github.com/apache/seatunnel/issues/10171
### Issue Description When attempting to use the **SeaTunnel MongoDB CDC Connector** as a source for data extraction from a **MongoDB Atlas** cluster, the connection fails because the connector does not support the recommended DNS Seed List URI format: `mongodb+srv://`. Upon investigating the connector's source code, I found that the connection URI is being hardcoded with the scheme `mongodb://`. https://github.com/apache/seatunnel/blob/349841e8d2bde06dd42b56b07704765dad230e9c/seatunnel-connectors-v2/connector-cdc/connector-cdc-mongodb/src/main/java/org/apache/seatunnel/connectors/seatunnel/cdc/mongodb/utils/MongodbUtils.java#L385 ### Expected Behavior The MongoDB CDC Connector should fully support the standard connection URI formats provided by MongoDB drivers, including the DNS Seed List format, for the following reasons: ### Steps to Reproduce 1. Obtain the **Standard Connection String** for a MongoDB Atlas cluster (it will be in the format `mongodb+srv://...`). 2. Configure a **SeaTunnel MongoDB CDC Connector** source using this `mongodb+srv://` URI. 3. Attempt to run the SeaTunnel job. 4. **Result:** The job fails immediately due to an illegal URI scheme or parsing error because the code expects the URI to start with `mongodb://`. ### Suggested Fix The connector's logic for constructing the connection URI should be modified to: 1. **Accept the full user-provided URI** without overriding or prepending the scheme (`mongodb://`). 2. Ensure the underlying MongoDB Java driver can correctly parse and handle both **`mongodb://`** and **`mongodb+srv://`** schemes. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
