goutamadwant opened a new pull request, #12399: URL: https://github.com/apache/seatunnel/pull/12399
### Purpose of this pull request Related to #10681. Add MongoDB source support for the existing connectivity dry-run SPI. Use the runtime-configured schema and a collection-scoped metadata request without starting readers, enumerating splits or reading/writing documents. ### Does this PR introduce _any_ user-facing change? Yes. MongoDB sources are validated instead of reported as unsupported by `--dry-run connect`. The check validates connectivity, authentication and collection visibility, accepts existing empty collections, and rejects missing or inaccessible collections. It supports collection-scoped credentials without requiring cluster-wide database listing. URI authentication, TLS and read preference settings are preserved. Dry-run timeouts are bounded, clients are closed, and secret-bearing driver exception chains are not exposed. This metadata check requires MongoDB 4.0 or later. Success does not prove document-read privileges, query validity or document-type compatibility. Timeout limits are per operation, not an overall deadline. Normal job execution, defaults and dependencies remain unchanged. ### How was this patch tested? - Reproduced the missing SPI with a failing baseline test. - All 29 connector unit tests passed on Java 8 and Java 11. - Five authenticated MongoDB 8.0.11 integration tests passed on both Java versions. - Covered collection-scoped access, missing/inaccessible and empty collections, wrong credentials and connection timeouts. - Captured real driver commands to verify metadata-only behavior. - Current-source dependency-reactor builds and Spotless passed. Live TLS was not exercised; preservation of URI TLS settings is unit-tested. ### Check list - [x] English and Chinese documentation updated. - [x] Connector unit and integration coverage added. - [x] No new dependencies or binary packages. - [x] No incompatible changes to normal job execution. - [x] No connector registration or distribution changes required. -- 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]
