Skip to content

Commit f5e26c4

Browse files
committed
fix: multiply catch
1 parent 95c7aba commit f5e26c4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,9 @@ public static void initArchitecture(@NonNull ConnectionSession connectionSession
470470
Verify.notNull(arch, "Architecture");
471471
connectionSession.setAttribute(ConnectionSessionConstants.OB_ARCHITECTURE, arch);
472472
log.debug("Init architecture completed.");
473+
} catch (CannotGetJdbcConnectionException e) {
474+
throw e;
473475
} catch (Exception e) {
474-
if (e instanceof CannotGetJdbcConnectionException) {
475-
throw e;
476-
}
477476
log.warn("Query architecture failed, errMsg={}", e.getMessage());
478477
}
479478
}

0 commit comments

Comments
 (0)