Skip to content

Commit aa88976

Browse files
shwstpprsureshanaparti
authored andcommitted
server: fix IllegalMonitorStateException on cluster managedstate change (apache#11310)
* server: fix IllegalMonitorStateException on cluster managedstate change Fixes apache#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>
1 parent 4cec2a4 commit aa88976

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/main/java/com/cloud/resource/ResourceManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,9 +1367,9 @@ public Cluster updateCluster(UpdateClusterCmd cmd) {
13671367
for (int i = 0; i < retry; i++) {
13681368
lsuccess = true;
13691369
try {
1370-
Thread.currentThread().wait(5 * 1000);
1370+
Thread.sleep(5 * 1000);
13711371
} catch (final InterruptedException e) {
1372-
s_logger.debug("thread unexpectedly interupted during wait, while updating cluster");
1372+
s_logger.debug("thread unexpectedly interrupted during wait, while updating cluster");
13731373
}
13741374
hosts = listAllUpAndEnabledHosts(Host.Type.Routing, cluster.getId(), cluster.getPodId(), cluster.getDataCenterId());
13751375
for (final HostVO host : hosts) {

0 commit comments

Comments
 (0)