Skip to content

Commit 95c7aba

Browse files
committed
fix: failed to oracle connection limit
1 parent 25fd00e commit 95c7aba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

server/odc-core/src/main/java/com/oceanbase/odc/core/session/ConnectionSessionUtil.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import javax.sql.DataSource;
3737

3838
import org.apache.commons.lang3.StringUtils;
39+
import org.springframework.jdbc.CannotGetJdbcConnectionException;
3940
import org.springframework.jdbc.core.JdbcOperations;
4041
import org.springframework.jdbc.core.StatementCallback;
4142

@@ -470,6 +471,9 @@ public static void initArchitecture(@NonNull ConnectionSession connectionSession
470471
connectionSession.setAttribute(ConnectionSessionConstants.OB_ARCHITECTURE, arch);
471472
log.debug("Init architecture completed.");
472473
} catch (Exception e) {
474+
if (e instanceof CannotGetJdbcConnectionException) {
475+
throw e;
476+
}
473477
log.warn("Query architecture failed, errMsg={}", e.getMessage());
474478
}
475479
}

0 commit comments

Comments
 (0)