OIiveirra commented on code in PR #68811:
URL: https://github.com/apache/doris/pull/68811#discussion_r4237511180
##########
fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcClientException.java:
##########
@@ -50,17 +72,6 @@ private static Object[] escapePercentInArgs(Object... args) {
}
public static String getAllExceptionMessages(Throwable throwable) {
- StringBuilder sb = new StringBuilder();
- while (throwable != null) {
- String message = throwable.getMessage();
- if (message != null && !message.isEmpty()) {
- if (sb.length() > 0) {
- sb.append(" | Caused by: ");
- }
- sb.append(message);
- }
- throwable = throwable.getCause();
- }
- return sb.toString();
+ return JdbcExceptionUtils.format("", throwable);
Review Comment:
已在 18eadfc04c8 修复。OceanBase streaming 校验现在把 sourceProperties 中的 password 和
jdbc_url 传入 JdbcExceptionUtils 重新聚合异常链,保留 JDBC redaction policy 后再构造
JobException。
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]