wgzhao commented on PR #13459:
URL: https://github.com/apache/seatunnel/pull/13459#issuecomment-7210733005

   Fixed the null-target compatibility mismatch in `3d07712828`:
   
   - Added a shared `batchFlushFailed` helper in `JdbcOutputFormat`. When 
`tableIdentifier` is `null` it keeps the legacy cause-only constructor, so the 
message is exactly `code.getErrorMessage()`; the `"for table ..."` message is 
only built when a target is known. All three formerly cause-only batch-failure 
exits now use it.
   - Strengthened the builder tests to assert the complete messages: the 
configured case asserts `getErrorMessage() + " - JDBC batch flush failed for 
table sales.orders."`, and the null-target case asserts exactly 
`getErrorMessage()`. The error-code and identical-cause assertions remain.
   
   Verification: `spotless:apply`; targeted JDBC unit tests (65) pass.
   
   A new fork Build is running against this head. The remaining cancelled lane 
is the pre-existing `mysql-cdc` JDK 17 `timeout-minutes: 180`; the JDK 11 lane 
completed in 2h51m47s on the previous run, and the same timeout reproduces on 
`apache/dev`, so I am not changing JDBC/transaction code for it.
   


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

Reply via email to