This is an automated email from the ASF dual-hosted git repository.

sureshanaparti pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new 4b1a605e597 server: fix IllegalMonitorStateException on cluster 
managedstate change (#11310)
4b1a605e597 is described below

commit 4b1a605e597316f30a99528ffd368ddd4915f14b
Author: Abhishek Kumar <abhishek.mr...@gmail.com>
AuthorDate: Tue Jul 29 18:33:05 2025 +0530

    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.mr...@gmail.com>
    Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anapa...@gmail.com>
---
 server/src/main/java/com/cloud/resource/ResourceManagerImpl.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/main/java/com/cloud/resource/ResourceManagerImpl.java 
b/server/src/main/java/com/cloud/resource/ResourceManagerImpl.java
index c05776ee6e1..e0cefc7b4bf 100755
--- a/server/src/main/java/com/cloud/resource/ResourceManagerImpl.java
+++ b/server/src/main/java/com/cloud/resource/ResourceManagerImpl.java
@@ -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) {

Reply via email to