Co-authored-by: answerliao <answerliao@tencent.com>
This commit is contained in:
parent
d1135eabc7
commit
b29965bdce
|
|
@ -245,7 +245,7 @@ public class ServerNodeManager implements InitializingBean {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateWorkerNodes() {
|
private void updateWorkerNodes() {
|
||||||
workerGroupWriteLock.lock();
|
workerNodeInfoWriteLock.lock();
|
||||||
try {
|
try {
|
||||||
Map<String, String> workerNodeMaps = registryClient.getServerMaps(RegistryNodeType.WORKER);
|
Map<String, String> workerNodeMaps = registryClient.getServerMaps(RegistryNodeType.WORKER);
|
||||||
for (Map.Entry<String, String> entry : workerNodeMaps.entrySet()) {
|
for (Map.Entry<String, String> entry : workerNodeMaps.entrySet()) {
|
||||||
|
|
@ -254,7 +254,7 @@ public class ServerNodeManager implements InitializingBean {
|
||||||
workerNodeInfo.put(nodeAddress, workerHeartBeat);
|
workerNodeInfo.put(nodeAddress, workerHeartBeat);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
workerGroupWriteLock.unlock();
|
workerNodeInfoWriteLock.unlock();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue