mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
server: fix IllegalMonitorStateException on cluster managedstate change (#11310)
* server: fix IllegalMonitorStateException on cluster managedstate change Fixes #11293 * Update server/src/main/java/com/cloud/resource/ResourceManagerImpl.java Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
This commit is contained in:
parent
a32738c52e
commit
4b1a605e59
@ -1217,9 +1217,9 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
|
||||
for (int i = 0; i < retry; i++) {
|
||||
lsuccess = true;
|
||||
try {
|
||||
Thread.currentThread().wait(5 * 1000);
|
||||
Thread.sleep(5 * 1000);
|
||||
} catch (final InterruptedException e) {
|
||||
s_logger.debug("thread unexpectedly interupted during wait, while updating cluster");
|
||||
s_logger.debug("thread unexpectedly interrupted during wait, while updating cluster");
|
||||
}
|
||||
hosts = listAllUpAndEnabledHosts(Host.Type.Routing, cluster.getId(), cluster.getPodId(), cluster.getDataCenterId());
|
||||
for (final HostVO host : hosts) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user