Commit 10b9281f by lepdou

update

parent b2b9dcd0
...@@ -87,9 +87,10 @@ public class AdminServiceAddressLocator { ...@@ -87,9 +87,10 @@ public class AdminServiceAddressLocator {
try { try {
ServiceDTO[] services = getAdminServerAddress(env); ServiceDTO[] services = getAdminServerAddress(env);
if (services != null && services.length > 0) { if (services == null || services.length == 0) {
cache.put(env, Arrays.asList(services)); continue;
} }
cache.put(env, Arrays.asList(services));
break; break;
} catch (Throwable e) {//meta server error } catch (Throwable e) {//meta server error
Cat.logError("get admin server address fail", e); Cat.logError("get admin server address fail", e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment