You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "yigitcan-ozturk (via GitHub)" <gi...@apache.org> on 2026/09/07 12:31:31 UTC

[PR] [Improve][Connector-V2] Validate nonblank DataHub sink options [seatunnel]

yigitcan-ozturk opened a new pull request, #12174:
URL: https://github.com/apache/seatunnel/pull/12174

   ### Purpose of this pull request
   
   Related to #11007.
   
   This PR implements the accepted connector-datahub factory-validation slice.
   
   ### What changed
   
   - Keep `endpoint`, `accessId`, `accessKey`, `project`, and `topic` required.
   - Add declarative `Conditions.notBlank(...)` validation to each required string option.
   - Replace the placeholder factory test with focused validation coverage for:
     - valid configuration;
     - missing required options;
     - empty required options;
     - whitespace-only required options.
   - Preserve option names and all existing nonblank configurations.
   - Leave client construction, timeout/retry semantics, network behavior, and runtime error handling unchanged.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes.
   
   Empty or whitespace-only values for required DataHub sink connection options are now rejected during connector option validation instead of reaching the DataHub client/runtime path.
   
   Existing nonblank configurations are unchanged.
   
   ### How was this patch tested?
   
   Focused `ConfigValidator` tests cover:
   
   - valid configuration;
   - missing required options;
   - empty required options;
   - whitespace-only required options;
   
   for all five required string options.
   
   Repository CI will run the connector test suite for this PR.
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/developer/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature.
   * [ ] If necessary, please update `incompatible-changes.md`.


-- 
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 nonblank DataHub sink options [seatunnel]

Posted by "nzw921rx (via GitHub)" <gi...@apache.org>.
nzw921rx merged PR #12174:
URL: https://github.com/apache/seatunnel/pull/12174


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