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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]