Skip to content

Commit 1b922e8

Browse files
author
Prasanna Santhanam
committed
Revert "CS-15922 : to avoid race condition when expunge vm, expunge interval and expunge deplay should be larger than 600 second"
Reverted as per discussion at http://s.apache.org/NOm This reverts commit 5060f98. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent 3cbce11 commit 1b922e8

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎server/src/com/cloud/vm/UserVmManagerImpl.java‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,14 +1415,10 @@ public boolean configure(String name, Map<String, Object> params) throws Configu
14151415

14161416
String time = configs.get("expunge.interval");
14171417
_expungeInterval = NumbersUtil.parseInt(time, 86400);
1418-
if ( _expungeInterval < 600 ) {
1419-
_expungeInterval = 600;
1420-
}
1418+
14211419
time = configs.get("expunge.delay");
14221420
_expungeDelay = NumbersUtil.parseInt(time, _expungeInterval);
1423-
if ( _expungeDelay < 600 ) {
1424-
_expungeDelay = 600;
1425-
}
1421+
14261422
_executor = Executors.newScheduledThreadPool(wrks, new NamedThreadFactory("UserVm-Scavenger"));
14271423

14281424
_itMgr.registerGuru(VirtualMachine.Type.User, this);

0 commit comments

Comments
 (0)