waterWang commented on issue #11769:
URL: https://github.com/apache/seatunnel/issues/11769#issuecomment-5261703248

   This issue is caused by the `connection-test-query` config in the 
`properties` block not being properly applied to the HikariCP connection pool. 
The `addDataSourceProperty()` method passes properties to the JDBC DataSource, 
not to HikariCP's pool configuration — the `setConnectionTestQuery()` method 
must be used instead.
   
   I've submitted PR #11771 that fixes this: the `applyConnectionValidation()` 
method now checks the user's `properties` config for 
`connectionTestQuery`/`connection-test-query` keys and applies them to the 
HikariCP pool directly.
   
   Note: The similar issue #7998 was partially fixed by PR #10793 (recovery 
path), but the prevention path (proper connection test query configuration) was 
still missing.


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