You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "goutamadwant (via GitHub)" <gi...@apache.org> on 2026/09/19 18:17:49 UTC
[PR] [Feature][Connector-V2] Add metadata-only connectivity dry-run for MongoDB source [seatunnel]
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Connector-V2] Add metadata-only connectivity dry-run for MongoDB source [seatunnel]
Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on PR #12399:
URL: https://github.com/apache/seatunnel/pull/12399#issuecomment-5772190416
Aligned the Chinese command table with the English ordering and added explicit scenario labels to the cleanup-failure assertions. All 30 connector tests pass. The previous-head Windows failure was PayPalClientTest.closeWakesRetryWait; these changes do not touch that fixture.
Pushed in 9fc2e8e1382d. CI for the new head is pending; the results above are scoped verification, not a green aggregate-build claim.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Connector-V2] Add metadata-only connectivity dry-run for MongoDB source [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo merged PR #12399:
URL: https://github.com/apache/seatunnel/pull/12399
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature][Connector-V2] Add metadata-only connectivity dry-run for MongoDB source [seatunnel]
Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on PR #12399:
URL: https://github.com/apache/seatunnel/pull/12399#issuecomment-5748009923
Addressed in `03ec44f79`: missing/hidden collections now retain the fixed, useful diagnosis after driver cleanup, without exposing driver messages, causes or suppressed cleanup errors. Added exact-message and cleanup-failure regressions, shared runtime/dry-run schema construction, and updated the EN/ZH support tables and MongoDB 4.0+ dry-run note.
The new assertion failed before the fix; all 30 MongoDB module unit tests now pass in a reactor verify build. Container E2E execution remains pending; this is not a claim that aggregate CI is green.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org