Skip to content

Commit

Permalink
add AvailCapacity check
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoukangcn committed Apr 11, 2024
1 parent 460e05c commit 3bbbb24
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ protected boolean checkContainerStatus(int retryLimit) {
try (ResultSet resultSet = statement.executeQuery(query)) {
while (resultSet.next()) {
String alive = resultSet.getString("Alive");
if (alive.equalsIgnoreCase("true")) {
String totalCapacity = resultSet.getString("TotalCapacity").trim();

// alive should be true and totalCapacity should not be 0.000
if (alive.equalsIgnoreCase("true") && !totalCapacity.equals("0.000")) {
LOG.info("Doris container startup success!");
return true;
}
Expand Down

0 comments on commit 3bbbb24

Please sign in to comment.