This is an automated email from the ASF dual-hosted git repository.

yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 067abac  [bug] fix bug of getBrokerDesc object is null (#5295)
067abac is described below

commit 067abac34218cc3bbc0fedb2e8481a191a4b916a
Author: XIAO WANG <[email protected]>
AuthorDate: Tue Jan 26 09:12:44 2021 +0800

    [bug] fix bug of getBrokerDesc object is null (#5295)
    
    Co-authored-by: wangxiaobaidu11 <[email protected]>
---
 fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadManager.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadManager.java 
b/fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadManager.java
index cf1e029..0554952 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadManager.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadManager.java
@@ -102,7 +102,7 @@ public class LoadManager implements Writable{
         LoadJob loadJob = null;
         writeLock();
         try {
-            if (stmt.getBrokerDesc().isMultiLoadBroker()) {
+            if (stmt.getBrokerDesc() != null && 
stmt.getBrokerDesc().isMultiLoadBroker()) {
                 if (!Catalog.getCurrentCatalog().getLoadInstance()
                         .isUncommittedLabel(dbId, 
stmt.getLabel().getLabelName())) {
                     throw new DdlException("label: " + 
stmt.getLabel().getLabelName() + " not found!") ;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to