cloudstack/test
Sheng Yang 8e1accb690 bug 11772: Add improved version of locking for the scripts in the systemvm
Because currently the lock in the script is retried every 1 second, and it's a
quite a long time that it's possible for some other active script can be
executed and retain the lock again. So it's possible that the first one request
the lock is always being preemptted by others, then finally got timeout.

To fix this issue, the retry interval is reduced to 0.1 seconds, which would
provide more retry times. And each process want to get the lock would create a
file named lockname-PID.lock, and only the first one(judged by timestamp) would
get the lock. The remaining ones would retry every 0.1 seconds to see if it can
get the lock.

Also timeout time is extended to 30 seconds.

And add testcase for it.

status 11772: resolved fixed
2011-11-01 19:05:57 -07:00
..
bindir move simulator and test to opensource 2011-08-24 10:40:38 -07:00
conf move simulator and test to opensource 2011-08-24 10:40:38 -07:00
metadata move simulator and test to opensource 2011-08-24 10:40:38 -07:00
scripts bug 11772: Add improved version of locking for the scripts in the systemvm 2011-11-01 19:05:57 -07:00
src/com/cloud move simulator and test to opensource 2011-08-24 10:40:38 -07:00
.classpath fixed eclipse class 2011-08-31 13:36:14 -07:00
.project move simulator and test to opensource 2011-08-24 10:40:38 -07:00