This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 74ee2624cf9 [fix](cloud) Fix insert_group_commit_into in cloud mode
(#38471)
74ee2624cf9 is described below
commit 74ee2624cf98420d22f515d3070b8b29a39f174e
Author: meiyi <[email protected]>
AuthorDate: Mon Jul 29 22:07:06 2024 +0800
[fix](cloud) Fix insert_group_commit_into in cloud mode (#38471)
The insert_group_commit_into is failed because:
```
2024-07-29 13:26:53,212 WARN (mysql-nio-pool-37|242) execute Exception.
stmt[117782, b23c0447050d40a8-82c73eb0ba031977]
java.util.UnknownFormatConversionException: Conversion = 'F'
at
java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2855) ~[?:?]
at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2891)
~[?:?]
at java.util.Formatter.parse(Formatter.java:2747) ~[?:?]
at java.util.Formatter.format(Formatter.java:2671) ~[?:?]
at java.util.Formatter.format(Formatter.java:2625) ~[?:?]
at java.lang.String.format(String.java:4145) ~[?:?]
at
org.apache.doris.common.ErrorReport.reportCommon(ErrorReport.java:30)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.common.ErrorReport.reportDdlException(ErrorReport.java:68)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.qe.StmtExecutor.handleInsertStmt(StmtExecutor.java:2397)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:1043)
~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:646)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.qe.StmtExecutor.queryRetry(StmtExecutor.java:567)
~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:557)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:385)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:237)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:260)
~[doris-fe.jar:1.2-SNAPSHOT]
```
Because the cloud error url may contain `%`
---
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index 825b38cc757..893ed46be71 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -2380,7 +2380,7 @@ public class StmtExecutor {
if (response.hasErrorUrl()) {
errMsg += ", error url: " + response.getErrorUrl();
}
- ErrorReport.reportDdlException(errMsg,
ErrorCode.ERR_FAILED_WHEN_INSERT);
+ ErrorReport.reportDdlException(errMsg.replaceAll("%",
"%%"), ErrorCode.ERR_FAILED_WHEN_INSERT);
}
label = response.getLabel();
txnStatus = TransactionStatus.PREPARE;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]