GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Improve][Connector-V2][InfluxDB] Declarative value constraints for sink options by TianHengZhuang · Pull Request #12384 · apache/seatunnel

[Improve][Connector-V2][InfluxDB] Declarative value constraints for sink options #12384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TianHengZhuang wants to merge 8 commits into apache:dev from TianHengZhuang:improve/influxdb-option-rule

Uh oh!

There was an error while loading. Please reload this page.

Closed

[Improve][Connector-V2][InfluxDB] Declarative value constraints for sink options #12384

Changes from 1 commit
Commits
Show all changes
8 commits
Select commit Hold shift + click to select a range
09c8e9b
[Improve][Connector-V2][InfluxDB] Declarative value constraints for s…
TianHengZhuang Sep 18, 2026
5edc05c
[Improve][Connector-V2][InfluxDB] Split optionRule required calls and…
TianHengZhuang Sep 20, 2026
7d07199
chore: retrigger CI
TianHengZhuang Sep 27, 2026
fd3d3af
fix: drop unused write_timeout constraint, document ranges and extend…
TianHengZhuang Sep 28, 2026
967aab2
fix: wrap the database assertion to satisfy spotless
TianHengZhuang Sep 29, 2026
08efdd6
fix: stop reusing the config map across lambda captures
TianHengZhuang Sep 30, 2026
f6d7a93
keep 0 valid for the client timeouts and give the pin tests teeth
TianHengZhuang Sep 30, 2026
6280e5e
Merge dev into improve/influxdb-option-rule
TianHengZhuang Sep 30, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix: stop reusing the config map across lambda captures
negativeOptionalValuesAreRejected reassigned the map variable after the
first lambda had captured it, so the test class did not compile and no
unit test in the module could run. Each case now goes through a small
helper that builds its own config, which keeps the captured variable
effectively final.
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@TianHengZhuang
TianHengZhuang committed Sep 30, 2026
commit 08efdd666930e513bad284a67413896dbadbfe09

There are no files selected for viewing

18 changes: 9 additions & 9 deletions 18 ...src/test/java/org/apache/seatunnel/connectors/seatunnel/influxdb/InfluxDBFactoryTest.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ private void validateSink(Map<String, Object> map) {
ConfigValidator.of(ReadonlyConfig.fromMap(map)).validate(sinkFactory.optionRule());
}

private void assertRejected(String key, Object value) {
Map<String, Object> map = validSinkConfig();
map.put(key, value);
Assertions.assertThrows(OptionValidationException.class, () -> validateSink(map));
}

@Test
void optionRule() {
Assertions.assertNotNull((new InfluxDBSourceFactory()).optionRule());
Expand Down Expand Up @@ -128,15 +134,9 @@ void writeTimeoutIsNotConstrained() {

@Test
void negativeOptionalValuesAreRejected() {
Map<String, Object> map = validSinkConfig();
map.put("connect_timeout_ms", -1L);
Assertions.assertThrows(OptionValidationException.class, () -> validateSink(map));
map = validSinkConfig();
map.put("query_timeout_sec", -1);
Assertions.assertThrows(OptionValidationException.class, () -> validateSink(map));
map = validSinkConfig();
map.put("batch_size", -1);
Assertions.assertThrows(OptionValidationException.class, () -> validateSink(map));
assertRejected("connect_timeout_ms", -1L);
assertRejected("query_timeout_sec", -1);
assertRejected("batch_size", -1);
}

@Test
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.