Skip to content

Commit

Permalink
delete invalid code
Browse files Browse the repository at this point in the history
  • Loading branch information
smallhibiscus committed Jan 29, 2024
1 parent eeef261 commit cba495d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ static String[] parseIdentifier(String tableIdentifier, Logger logger)
public static String randomEndpoint(String feNodes, Logger logger)
throws IllegalArgumentException {
logger.trace("Parse fenodes '{}'.", feNodes);
int checkCount = 0;
if (StringUtils.isEmpty(feNodes)) {
logger.error(ILLEGAL_ARGUMENT_MESSAGE, "fenodes", feNodes);
throw new IllegalArgumentException("fenodes", feNodes);
Expand All @@ -285,14 +284,9 @@ public static String randomEndpoint(String feNodes, Logger logger)
for (String feNode : nodes) {
if (BackendUtil.tryHttpConnection(feNode)) {
return feNode;
} else {
++checkCount;
}
}
if (checkCount >= nodes.size()) {
throw new DorisRuntimeException("No Doris FE is available, please check configuration");
}
return null;
throw new DorisRuntimeException("No Doris FE is available, please check configuration or cluster status.");
}

/**
Expand Down

0 comments on commit cba495d

Please sign in to comment.