MYiYang commented on code in PR #168:
URL: 
https://github.com/apache/doris-spark-connector/pull/168#discussion_r1426373446


##########
spark-doris-connector/src/main/java/org/apache/doris/spark/load/DorisStreamLoad.java:
##########
@@ -408,7 +411,10 @@ public Map<String, String> getStreamLoadProp(SparkSettings 
sparkSettings) {
 
     private String getBackend() {
         try {
-            if (autoRedirect) {
+            /**
+             * It says that when BE exists there is no FE so this is handled 
logically
+             */
+            if (autoRedirect && null == beNodes) {
                 return RestService.randomEndpoint(fenodes, LOG);

Review Comment:
   ok  let me think about this one



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to