You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "Nikk8091 (via GitHub)" <gi...@apache.org> on 2026/09/16 19:35:53 UTC
[PR] [Improve][Connector-V2] Validate SLS required options [seatunnel]
Nikk8091 opened a new pull request, #12352:
URL: https://github.com/apache/seatunnel/pull/12352
### Purpose of this pull request
This PR handles the approved `connector-sls` source-and-sink validation slice of #11007.
It adds declarative `notBlank` validation for the five existing required string options in both factories:
- `endpoint`
- `project`
- `logstore`
- `access_key_id`
- `access_key_secret`
The change is limited to factory-verifiable configuration eligibility. Optional options, defaults, cursor/start-mode behavior, client construction, credentials, networking, and source/sink runtime behavior remain unchanged.
### Does this PR introduce any user-facing change?
Yes. Missing, empty, and whitespace-only values for the five required options are rejected during factory configuration validation for both the source and sink. Nonblank values, including values with surrounding spaces, remain accepted.
The English and Chinese source and sink documentation now states that these required options cannot be empty or whitespace-only.
### How was this patch tested?
Replaced the placeholder factory test with focused source-and-sink validation coverage for:
- valid configurations;
- all five required values with surrounding spaces;
- each required option when missing;
- each required option when empty;
- each required option when whitespace-only.
Validation performed with JDK 11:
- `mvnw -pl seatunnel-connectors-v2/connector-sls spotless:apply`: passed;
- `mvnw -pl seatunnel-connectors-v2/connector-sls -DskipITs verify`: passed;
- `SlsFactoryTest`: 4 tests, 0 failures, 0 errors, 0 skipped;
- `git diff --check`: passed.
### Checklist notes
- No new dependency was added.
- No remote SLS service is contacted by the tests.
- No connector registration, distribution, E2E, credential, network, client, cursor, start-mode, source runtime, or sink runtime behavior was changed.
- This PR contains only the approved SLS connector scope from #11007.
--
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] [Improve][Connector-V2] Validate SLS required options [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12352:
URL: https://github.com/apache/seatunnel/pull/12352#issuecomment-5726031640
Thanks for the quick turnaround, @Nikk8091! Confirmed on my side too — this PR only attaches `notBlank` value constraints to options that were already required in `SlsSourceFactory`/`SlsSinkFactory`; it doesn't add any new required option or change any option's presence/type, so my earlier read stands. The rebase onto the latest `dev` looks clean, and the whitespace-handling behavior you describe (surrounding-space values still accepted, blank/whitespace-only rejected) matches what I traced through `ConditionEvaluators.NOT_BLANK` during review. Good to see `mvnw -pl seatunnel-connectors-v2/connector-sls -DskipITs verify` passing locally as well.
My earlier review was an APPROVE with only non-blocking suggestions (strengthening the test's exception-message assertion, a possible follow-up on trimming/documenting whitespace behavior, and an optional E2E negative case) — none of those are blockers, so this remains ready-to-merge from my side. The `Build` check on this fresh commit is still finishing up, and the PR currently shows `REVIEW_REQUIRED` (likely because the new push reset review state per branch protection) — once CI is green this should just need another maintainer's approval to clear that gate. Thanks again for addressing the follow-ups so thoroughly!
--
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] [Improve][Connector-V2] Validate SLS required options [seatunnel]
Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx merged PR #12352:
URL: https://github.com/apache/seatunnel/pull/12352
--
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] [Improve][Connector-V2] Validate SLS required options [seatunnel]
Posted by "Nikk8091 (via GitHub)" <gi...@apache.org>.
Nikk8091 commented on PR #12352:
URL: https://github.com/apache/seatunnel/pull/12352#issuecomment-5725546633
Confirmed and updated:
- `endpoint`, `project`, `logstore`, `access_key_id`, and `access_key_secret` were already required string options in both factories. This PR does not change their required/optional status or type and introduces no new option.
- The branch has been rebased onto the latest `dev` at `c7304ace`; the rebased contribution commit is `8ebdf5ef`.
- The surrounding-spaces cases confirm the existing `notBlank` behavior: nonblank strings with surrounding spaces remain accepted. No trimming or value transformation was added to the source or sink code.
- After rebasing, `mvnw -pl seatunnel-connectors-v2/connector-sls -DskipITs verify` passed with 4 tests, 0 failures, and 0 errors.
I added these confirmations to the PR description as requested. Thank you.
--
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