Skip to content

Commit fc6b10b

Browse files
Merge pull request #5 from littleniannian/fix_oracle_conn_limit
fix: failed to oracle connection limit
2 parents d6fec14 + f5e26c4 commit fc6b10b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 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

@@ -469,6 +470,8 @@ public static void initArchitecture(@NonNull ConnectionSession connectionSession
469470
Verify.notNull(arch, "Architecture");
470471
connectionSession.setAttribute(ConnectionSessionConstants.OB_ARCHITECTURE, arch);
471472
log.debug("Init architecture completed.");
473+
} catch (CannotGetJdbcConnectionException e) {
474+
throw e;
472475
} catch (Exception e) {
473476
log.warn("Query architecture failed, errMsg={}", e.getMessage());
474477
}

0 commit comments

Comments
 (0)