JNSimba commented on code in PR #168:
URL:
https://github.com/apache/doris-spark-connector/pull/168#discussion_r1420476763
##########
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:
Is it possible to use autoRedirect directly to judge here? There is no need
to add benodes=null logic, otherwise the configuration will be confusing.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]