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/22 04:52:38 UTC

[PR] [Feature][Connector-V2] Add Cassandra source connectivity dry-run [seatunnel]

goutamadwant opened a new pull request, #12430:
URL: https://github.com/apache/seatunnel/pull/12430

   ### Purpose of this pull request
   
   Relates to #10681. Add Cassandra source support for the existing Layer 1 `--dry-run connect` path through `SupportSourceDryRunValidation`.
   
   Prepare configured SELECT statements and infer projected schemas from prepared result metadata without executing the application query or constructing a source reader. Share the runtime schema conversion, bound driver operations, close resources, and avoid exposing CQL/server causes in connector failure messages.
   
   Depends on #12429 and remains draft until that prerequisite is merged. The comparison against `dev` currently includes the bootstrap commit; the dry-run-only change is commit `265e6675b76d4fd9f8c52305f8e68294d058406e`. No changes are made to `DryRunConnectValidator`, shared SPI interfaces, CLI level names or failure semantics. Redis support and later dry-run layers are outside this PR.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. Cassandra source changes from unsupported/skipped connectivity validation to scoped connection and prepared-schema validation. Normal data-job execution is unchanged. English and Chinese connector and CLI capability documentation is updated.
   
   The dry-run accepts CQL beginning with SELECT, optionally preceded by whitespace. It rejects leading comments, non-SELECT statements, unbound parameters, empty result metadata and duplicate output identifiers. These restrictions apply to dry-run only.
   
   The driver may read system metadata and populate its prepared-statement cache. Success does not prove SELECT permissions, later query execution, consistency-level availability or sink compatibility. Timeouts are per operation, not a single total deadline. No new configuration option, default, dependency or public SPI is introduced.
   
   ### How was this patch tested?
   
   - Java 8 and Java 11: 32 connector unit tests and 8 live integration cases pass on the stacked branch, including the bootstrap prerequisite's tests.
   - Cassandra 4.1.1 coverage includes projected-schema parity, aliases/functions, empty results, multiple tables, missing tables/keyspaces, authenticated success and wrong-password failure.
   - Unit tests assert preparation without application-query execution. A live request observer first verifies an ordinary SELECT is observable, then sees no successful executed-CQL callbacks during dry-run; PREPARE is not exposed by that observer, so this is not a wire trace or a claim of zero system-metadata access.
   - Packaged CLI success/failure tests pass. The CLI engine uses its Java 8 container; direct factory integration runs in the selected Java 8/11 harness.
   - Owned local no-response endpoint probes fail safely on both JDKs. Pre-interrupted calls, cleanup, bounded driver settings and sanitized failures are covered.
   - Root formatting and Java 11 `./mvnw -q -DskipTests verify` pass. Normal source/sink E2E evidence is recorded separately for the bootstrap prerequisite.
   
   Focused command, run with Java 8 and Java 11 selected through `JAVA_HOME`:
   
   ```sh
   ./mvnw -B -pl seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cassandra-e2e -am \
     -Dtest=CassandraClientTest,CassandraFactoryTest,TypeConvertUtilTest \
     -Dsurefire.failIfNoSpecifiedTests=false -DskipIT=false \
     '-Dit.test=CassandraIT#testDryRun*+testUnavailableBootstrapContactPoint' \
     -DfailIfNoTests=false verify
   ```
   
   ### Check list
   
   - [x] No new binary dependency; license/notice additions are not required.
   - [x] English and Chinese documentation updated.
   - [x] No existing runtime configuration/API incompatibility or migration required; new dry-run restrictions are documented.
   - [x] Existing Cassandra E2E extended. No new connector registration, plugin mapping, distribution entry or CI scope registration is needed.
   


-- 
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 Cassandra source connectivity dry-run [seatunnel]

Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on PR #12430:
URL: https://github.com/apache/seatunnel/pull/12430#issuecomment-5808308560

   At head f1ee2c5c, the dry-run diagnostic follow-up preserves only the two validator-owned structural errors; driver, query, schema, and cleanup details stay generic so connection information cannot leak. Focused Java 8 and Java 11 tests each passed (32 tests), including the new diagnostic assertions. This draft still depends on #12429 for the main feature, and its updated Build is running.


-- 
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 Cassandra source connectivity dry-run [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12430:
URL: https://github.com/apache/seatunnel/pull/12430#issuecomment-5812709221

   Thanks for the update and the clear summary of what changed! I re-checked the head commit directly (rather than taking the summary on faith) — the `SafeValidationException` wrapper correctly narrows the exception-message discard to only the two safe, self-thrown structural errors, and the new test asserting `getSuppressed().length == 0` under an injected `session.close()` failure gives it real regression-catching power. This closes my previous Issue 1. Posting a full re-review below with the rest of my findings on the current head.


-- 
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 Cassandra source connectivity dry-run [seatunnel]

Posted by "davidzollo (via GitHub) via commits" <co...@seatunnel.apache.org>.
davidzollo merged PR #12430:
URL: https://github.com/apache/seatunnel/pull/12430


-- 
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 Cassandra source connectivity dry-run [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12430:
URL: https://github.com/apache/seatunnel/pull/12430#issuecomment-6266768593

   The CI fact cited in my previous review has changed: Build for the current unchanged head is now passing. CI was previously the only remaining blocker; CI is now passing, so my technical conclusion changes to approve. I do not see a new source-side blocker from Daniel's review. This branch is behind the latest dev base, which I have recorded as merge metadata only; because the current head CI is green, that fact alone does not call for an additional source change. I have read-only review controls, so this COMMENT does not change GitHub's displayed review decision; a write-capable maintainer must perform any final approval or dismissal action.


-- 
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 Cassandra source connectivity dry-run [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12430:
URL: https://github.com/apache/seatunnel/pull/12430#issuecomment-6289460248

   Small correction to my comment from 2026-10-19: Build is indeed green on head `85961d19`, so the CI blocker from my last review is cleared and I still see no source-level issue. However, my note said the conclusion changed to approve, and that overlooked the second blocker I listed: this PR is still marked as a draft. Please mark it ready for review when you are happy with it; once that is done, nothing else from my side is outstanding. Thanks for your patience, @goutamadwant!
   


-- 
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 Cassandra source connectivity dry-run [seatunnel]

Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12430:
URL: https://github.com/apache/seatunnel/pull/12430#issuecomment-6109428694

   Quick status update for @goutamadwant on head `5879969f8`, which has not changed since my last review.
   
   - **CI: now green.** In my last review the apache-side `Build` was still in progress and the fork run was queued. That is out of date: fork run `38089996882` (`goutamadwant/seatunnel`) completed successfully for this exact head (Code style, License header, Dead links, Sanity check, unit-test on 11/17 for Ubuntu and Windows, and updated-modules-integration-test-part-1 on 11/17), and the apache-side `Build` now reports SUCCESS.
   - **Merge state changed.** I reported the conflict as cleared and the head as 0 behind `dev`. `dev` has moved since then, and GitHub now shows this PR as conflicting (13 commits behind `dev`). Please sync with the latest `dev` again; the files most likely to conflict are the `docs/*/engines/zeta/user-command.md` tables that other dry-run PRs also edit, so keep both sides' rows. After the sync, only the new head will need CI.
   - **Still the same:** the PR is a draft, and it needs to be marked ready for review before it can be merged.
   
   My source-side conclusion is unchanged: no open source issues from my review, so this is not an approval yet only because of the merge conflict and draft state. Thanks!
   


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