This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 5f846056f7 [fix](forward) fix MissingFormatArgumentException when
failed to forward stmt to Master (#22142)
5f846056f7 is described below
commit 5f846056f7b8c8bb2fa4c39f8b17b2122eb65652
Author: Mingyu Chen <[email protected]>
AuthorDate: Wed Jul 26 09:00:04 2023 +0800
[fix](forward) fix MissingFormatArgumentException when failed to forward
stmt to Master (#22142)
---
fe/fe-core/src/main/java/org/apache/doris/qe/MasterOpExecutor.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/MasterOpExecutor.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/MasterOpExecutor.java
index c4f88b3b9a..c8c158ce87 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/MasterOpExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/MasterOpExecutor.java
@@ -117,9 +117,9 @@ public class MasterOpExecutor {
// may throw NullPointerException. add err msg
throw new Exception("Failed to get master client.", e);
}
- final StringBuilder forwardMsg = new
StringBuilder(String.format("forward to Master %s", thriftAddress));
+ final StringBuilder forwardMsg = new StringBuilder("forward to master
FE %s" + thriftAddress.toString());
if (!params.isSyncJournalOnly()) {
- forwardMsg.append(", statement: %s").append(ctx.getStmtId());
+ forwardMsg.append(", statement id: ").append(ctx.getStmtId());
}
LOG.info(forwardMsg.toString());
@@ -131,7 +131,7 @@ public class MasterOpExecutor {
} catch (TTransportException e) {
// wrap the raw exception.
forwardMsg.append(" : failed");
- Exception exception = new
ForwardToMasterException(String.format(forwardMsg.toString()), e);
+ Exception exception = new
ForwardToMasterException(forwardMsg.toString(), e);
boolean ok = ClientPool.frontendPool.reopen(client,
thriftTimeoutMs);
if (!ok) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]