This is an automated email from the ASF dual-hosted git repository.
liaoxin 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 2a812342ba6 [fix](fe) Return early for non-master stream load
precommit (#62109)
2a812342ba6 is described below
commit 2a812342ba64560a4805afb7f9a8c7a3e10c930f
Author: Xin Liao <[email protected]>
AuthorDate: Fri Apr 10 15:51:05 2026 +0800
[fix](fe) Return early for non-master stream load precommit (#62109)
Problem Summary: loadTxnPreCommit() kept executing after checkMaster()
returned a non-OK status, which made the precommit path inconsistent
with the other stream load transaction RPCs.
---
.../src/main/java/org/apache/doris/service/FrontendServiceImpl.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
b/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
index 4e2cbec393d..b9d06cfcd4e 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/service/FrontendServiceImpl.java
@@ -1455,6 +1455,9 @@ public class FrontendServiceImpl implements
FrontendService.Iface {
TLoadTxnCommitResult result = new TLoadTxnCommitResult();
TStatus status = checkMaster();
result.setStatus(status);
+ if (status.getStatusCode() != TStatusCode.OK) {
+ return result;
+ }
try {
loadTxnPreCommitImpl(request);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]