Skip to content

Commit

Permalink
Fix remove offline server (#2445)
Browse files Browse the repository at this point in the history
Co-authored-by: cheyx <cheyx@tsintergy.com>
  • Loading branch information
ooooooook and cheyx authored Oct 10, 2024
1 parent 5466e43 commit b03ad56
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public boolean isEnableServer(final String ip) {

/**
* Remove unused server IP.
*
*
* @return num of server IP to be removed
*/
public int removeOfflineServers() {
Expand All @@ -132,7 +132,7 @@ public int removeOfflineServers() {
return;
}
String status = jobNodeStorage.getJobNodeData(serverNode.getServerNode(serverIp));
if (StringUtils.isNotBlank(status)) {
if (StringUtils.isBlank(status)) {
return;
}
jobNodeStorage.removeJobNodeIfExisted(serverNode.getServerNode(serverIp));
Expand Down

0 comments on commit b03ad56

Please sign in to comment.