Details
-
Bug
-
Resolution: Done
-
Major
-
4.0.0.CR2
-
None
Description
Whenever EntryFactoryImpl can't acquire a lock, it throws:
Object owner = lockManager.getOwner(key);
throw new TimeoutException("Unable to acquire lock after [" + Util.prettyPrintTime(getLockAcquisitionTimeout(ctx)) + "] on key [" + key + "] for requestor [" +
ctx.getLockOwner() + "]! Lock held by [" + owner + "]");
However, when lazy deserialization is enabled, the key is shown in its MarshalledValue form which is useless to the user.
The easy fix is to add:
if (key instanceof MarshalledValue)
{ key = ((MarshalledValue) key).get(); }However, this is not pretty and the first time we're having to do something similar. We had to do the same in EventImpl for ISPN-242.