void function ( ) { setMaxLocks ( 1 ) ; final BlockLockManager loc0 = new BlockLockManager ( ) ; long loc1 = loc0 . lockBlock ( TEST_SESSION_ID , 1 , BlockLockType . READ ) ; loc0 . lockBlock ( TEST_SESSION_ID , 1 , BlockLockType . READ ) ; loc0 . unlockBlock ( loc1 ) ; lockExpectingHang ( loc0 , 2 ) ; }
tests that block locks are not returned to the pool when they are still in use . concode_field_sep BlockLockManager mLockManager concode_elem_sep long TEST_BLOCK_ID concode_elem_sep ExpectedException mThrown concode_elem_sep long TEST_SESSION_ID concode_elem_sep TemporaryFolder mFolder concode_field_sep void lockAcrossSessions concode_elem_sep void stress concode_elem_sep void validateLockIdWithNoRecord concode_elem_sep void unlockNonExistingLock concode_elem_sep void before concode_elem_sep void reuseLock concode_elem_sep void readBlocksWrite concode_elem_sep void validateLockIdWithWrongBlockId concode_elem_sep void setMaxLocks concode_elem_sep void lockExpectingHang concode_elem_sep void lockBlock concode_elem_sep void grabManyLocks concode_elem_sep void validateLockIdWithWrongSessionId concode_elem_sep void cleanupSession concode_elem_sep void after