File tree Expand file tree Collapse file tree
server/odc-core/src/main/java/com/oceanbase/odc/core/session Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636import javax .sql .DataSource ;
3737
3838import org .apache .commons .lang3 .StringUtils ;
39+ import org .springframework .jdbc .CannotGetJdbcConnectionException ;
3940import org .springframework .jdbc .core .JdbcOperations ;
4041import 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 }
You can’t perform that action at this time.
0 commit comments