You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@linkis.apache.org by "ChengJie1053 (via GitHub)" <gi...@apache.org> on 2023/06/14 06:22:43 UTC

[GitHub] [linkis] ChengJie1053 commented on a diff in pull request #4625: Fix es ArrayIndexOutOfBoundsException bug

ChengJie1053 commented on code in PR #4625:
URL: https://github.com/apache/linkis/pull/4625#discussion_r1229069813


##########
linkis-engineconn-plugins/elasticsearch/src/main/java/org/apache/linkis/engineplugin/elasticsearch/executor/client/EsClientFactory.java:
##########
@@ -192,6 +192,9 @@ private static HttpHost[] getCluster(String clusterStr) {
           .map(
               value -> {
                 String[] arr = value.replace("http://", "").split(":");
+                if (arr.length < 2) {
+                  return new HttpHost("127.0.0.1", 9200);

Review Comment:
   Ok, thanks for reviewing the code



-- 
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: notifications-unsubscribe@linkis.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@linkis.apache.org
For additional commands, e-mail: notifications-help@linkis.apache.org