You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "xinnyuli (via GitHub)" <gi...@apache.org> on 2026/09/17 13:40:00 UTC
[PR] [Test][Connector-V2][HTTP] Cover remaining failure paths [seatunnel]
xinnyuli opened a new pull request, #12376:
URL: https://github.com/apache/seatunnel/pull/12376
### Dependency
Depends on #12312.
This PR is opened as a draft because these regression tests require the production fix in #12312. They are expected to fail against the current `dev` branch until that PR is merged.
### Purpose of this pull request
This adds the remaining regression coverage identified during review of #12312:
1. Verify that an array-mode `IOException` is propagated through `prepareCommit()`, while the failed batch remains buffered and is retried by the next successful commit.
2. Verify that `close()` still closes the HTTP client when the final array-mode flush fails.
Related to #12310.
### How was this patch tested?
The focused test suite passes when this commit is applied on top of #12312:
```text
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
```
Command:
```shell
./mvnw -pl seatunnel-connectors-v2/connector-http/connector-http-base \
-Dtest=HttpSinkBatchWriterTest test
```
### Does this PR introduce any user-facing change?
No. This PR only adds regression coverage for the behavior implemented by #12312.
--
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] [Test][Connector-V2][HTTP] Cover remaining failure paths [seatunnel]
Posted by "davidzollo (via GitHub) via commits" <co...@seatunnel.apache.org>.
davidzollo commented on PR #12376:
URL: https://github.com/apache/seatunnel/pull/12376#issuecomment-6886005056
### Implementation Notes and Trade-offs
Head: `b23218b3cbe2855f73b1e743b5d320742dea7009`
I synced this branch with `dev` and resolved the one overlap in `HttpSinkBatchWriterTest.java`. The earlier failed assertions depended on the production fix that has now merged in #12312. The resolution keeps both tests from #12312 and both cases from this PR: an array-mode IOException must propagate without losing the batch on retry, and the HTTP client must close even when the final flush fails.
Keeping both sets matters: accepting just one side would lose different failure coverage. The dev-relative change remains one test file. No production code or build configuration changed in the PR diff. Scoped Spotless apply/check and the diff whitespace check passed; the updated GitHub Build is the runtime verification gate.
--
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] [Test][Connector-V2][HTTP] Cover remaining failure paths [seatunnel]
Posted by "DanielLeens (via GitHub) via commits" <co...@seatunnel.apache.org>.
DanielLeens commented on PR #12376:
URL: https://github.com/apache/seatunnel/pull/12376#issuecomment-7207799624
Thanks for the maintainer review. My existing technical conclusion is unchanged, and the exact-head fork Build is successful. No additional source change is requested by this exchange.
Discussion-only follow-up on unchanged head `b23218b3cbe2855f73b1e743b5d320742dea7009`. Compare `diverged`, ahead 2 / behind 113; drift alone is not a sync request. No new full source review or local build/test/runtime execution is claimed. Daniel has READ permission; effective maintainer approval/dismissal remains independent.
Current snapshot (2026-11-27T03:03:53.150710+00:00): Signal pull request update: SUCCESS; Build: SUCCESS; merge state `UNSTABLE`; review decision `APPROVED`.
--
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