#498 fix bug
This commit is contained in:
parent
7abee38ff4
commit
705a47e5d2
@ -474,6 +474,11 @@ public class DomainsManager {
|
||||
public int getPagedDom(String namespaceId, int startPage, int pageSize, String keyword, List<Domain> domainList) {
|
||||
|
||||
List<Domain> matchList;
|
||||
|
||||
if (chooseDomMap(namespaceId) == null) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(keyword)) {
|
||||
matchList = searchDomains(namespaceId, ".*" + keyword + ".*");
|
||||
} else {
|
||||
|
@ -82,7 +82,7 @@ public class ClientBeatCheckTask implements Runnable {
|
||||
+ ipAddress.getWeight() + "_" + ipAddress.getClusterName();
|
||||
String url = "http://127.0.0.1:" + RunningConfig.getServerPort() + RunningConfig.getContextPath()
|
||||
+ UtilsAndCommons.NACOS_NAMING_CONTEXT + "/api/remvIP4Dom?dom="
|
||||
+ domain.getName() + "&ipList=" + ipList + "&token=" + domain.getToken();
|
||||
+ domain.getName() + "&ipList=" + ipList + "&token=" + domain.getToken() + "&namespaceId=" + domain.getNamespaceId();
|
||||
HttpClient.HttpResult result = HttpClient.httpGet(url, null, null);
|
||||
if (result.code != HttpURLConnection.HTTP_OK) {
|
||||
Loggers.SRV_LOG.error("[IP-DEAD] failed to delete ip automatically, ip: {}, caused {}, resp code: {}",
|
||||
|
Loading…
Reference in New Issue
Block a user