ruanwenjun commented on code in PR #14190:
URL:
https://github.com/apache/dolphinscheduler/pull/14190#discussion_r1267859572
##########
dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-kyuubi/src/main/java/org/apache/dolphinscheduler/plugin/datasource/kyuubi/KyuubiDataSourceClient.java:
##########
@@ -59,7 +67,7 @@ public Connection getConnection() {
Connection connection = null;
while (connection == null) {
try {
- connection = dataSource.getConnection();
+ connection = driverManagerDataSource.getConnection();
Review Comment:
Please add max retry times here, this is dangerous code, in fact, it's
better to generate a new connection here, rather than use
`driverManagerDataSource.getConnection();`
--
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]