mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
throw timeout exception when lock acquire times out
This commit is contained in:
parent
b3c117a11e
commit
d8ad3e32bc
@ -138,10 +138,9 @@ public class Merovingian2 extends StandardMBean implements MerovingianMBean {
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
}
|
||||
if (s_logger.isTraceEnabled()) {
|
||||
s_logger.trace("Timed out on acquiring lock " + key + ". Waited for " + (InaccurateClock.getTime() - startTime));
|
||||
}
|
||||
return false;
|
||||
String msg = "Timed out on acquiring lock " + key + " . Waited for " + ((InaccurateClock.getTime() - startTime)/1000) + "seconds";
|
||||
s_logger.warn(msg);
|
||||
throw new CloudRuntimeException(msg);
|
||||
}
|
||||
|
||||
protected boolean increment(String key, String threadName, int threadId) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user