Skip to content

Commit 69c2a7e

Browse files
committed
server: fix IllegalMonitorStateException on cluster managedstate change
Fixes #11293 Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 6e19c07 commit 69c2a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ public Cluster updateCluster(UpdateClusterCmd cmd) {
12171217
for (int i = 0; i < retry; i++) {
12181218
lsuccess = true;
12191219
try {
1220-
Thread.currentThread().wait(5 * 1000);
1220+
Thread.sleep(5 * 1000);
12211221
} catch (final InterruptedException e) {
12221222
s_logger.debug("thread unexpectedly interupted during wait, while updating cluster");
12231223
}

0 commit comments

Comments
 (0)