commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39559] New: - Timeout is not passed in org.apache.commons.transaction.locking.GenericLockManager#lock(Object ownerId, Object resourceId, int targetLockLevel, boolean reentrant, long timeoutMSecs)
Date Thu, 11 May 2006 13:37:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39559>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39559

           Summary: Timeout is not passed in
                    org.apache.commons.transaction.locking.GenericLockManage
                    r#lock(Object ownerId, Object resourceId, int
                    targetLockLevel, boolean reentrant, long timeoutMSecs)
           Product: Commons
           Version: 1.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Transaction
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mathieu.baudier@murex.com


The timeOutMSecs argument is not passed in the lock(Object ownerId, Object
resourceId, int targetLockLevel, boolean reentrant, long timeoutMSecs) method of
GenericLocakManager, as can be seen below:

public void lock(Object ownerId, Object resourceId, int targetLockLevel, boolean
reentrant,
        long timeoutMSecs) throws LockException {
    lock(ownerId, resourceId, targetLockLevel, reentrant ?
GenericLock.COMPATIBILITY_REENTRANT
            : GenericLock.COMPATIBILITY_NONE, false, globalTimeoutMSecs);
}

globalTimeoutMSecs will therefore be used instead. It is set in the constructor
<init>(int maxLockLevel, LoggerFacade logger, long timeoutMSecs,long
checkThreshholdMSecs).

In the case we faced, we were using the <init>(int maxLockLevel, LoggerFacade
logger) constructor, so the timeout value is always DEFAULT_TIMEOUT (that is
30000 ms) and we have no way to configure it externally without changing our own
code.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message