starrysky9959 commented on issue #10171:
URL: https://github.com/apache/seatunnel/issues/10171#issuecomment-3638156099

   The **MongoDB driver** itself natively supports both **`mongodb://`** 
(standard connection) and **`mongodb+srv://`** (DNS SRV connection) protocols. 
The driver automatically switches between them by simply checking the URI 
prefix. For instance, the SeaTunnel MongoDB connector (non-CDC) seems to 
implement this correctly by using a single `uri` parameter.
   
   Therefore, the most natural and standard approach would be to have the user 
specify a **complete connection URI** (e.g., `mongodb://...` or 
`mongodb+srv://...`). The connector should then pass this full URI directly to 
the MongoDB driver for connection, eliminating the need for an additional, 
redundant parameter to enable/disable DNS SRV. Allowing the user to provide the 
complete URI (including the protocol scheme) ensures we leverage the driver's 
native functionality.


-- 
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]

Reply via email to