Merge pull request #664 from paderlol/develop

Fix update instance info NPE #663
This commit is contained in:
Fury Zhu 2019-01-20 22:04:57 +08:00 committed by GitHub
commit ad4f63ebe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,7 +315,7 @@ public class DomainsManager {
try {
if (!dom.getEnableClientBeat()) {
getDom2LockMap().get(domName).lock();
getDom2LockMap().get(UtilsAndCommons.assembleFullServiceName(namespaceId, domName)).lock();
}
Datum datum1 = RaftCore.getDatum(UtilsAndCommons.getIPListStoreKey(dom));
@ -389,7 +389,7 @@ public class DomainsManager {
RaftCore.onPublish(datum, peer, increaseTerm);
} finally {
if (!dom.getEnableClientBeat()) {
getDom2LockMap().get(domName).unlock();
getDom2LockMap().get(UtilsAndCommons.assembleFullServiceName(namespaceId, domName)).unlock();
}
}