• Bug
  • Status: Closed
  • 0 Showstopper
  • Resolution: Fixed
  • hhuynh
  • Reporter: hmak
  • September 10, 2008
  • 0
  • Watchers: 1
  • December 16, 2008
  • December 05, 2008

Attachments

Description

ReentrantLock shared as DSO cannot be interrupted (either through direct Thread.interrupt() or via container ThreadGroup.interrupt())

Attached reproduce case does direct Thread.interrupt() to no effect. Strack of “stuck” thread is: Object.wait(long) line: not available [native method] Object.wait() line: 474 ClientLock.waitForLock(ThreadID, int, Object) line: 609 ClientLock.basicLock(ThreadID, int, TimerSpec, boolean, String) line: 204 ClientLock.lock(ThreadID, int, TimerSpec, boolean, String) line: 116 ClientLock.lock(ThreadID, int, String) line: 106 ClientLockManagerImpl.lock(LockID, ThreadID, int, String, String) line: 298 ThreadLockManagerImpl.lock(LockID, int, String, String) line: 46 ClientTransactionManagerImpl.begin(String, int, String, String) line: 187 ManagerImpl.begin(String, int, Object, TCObject, String) line: 337 ManagerImpl.monitorEnter(Object, int, String) line: 507 ManagerImpl.monitorEnter(Object, int) line: 495 ManagerUtil.monitorEnter(Object, int) line: 498 Blocker(ReentrantLock).lockInterruptibly() line: not available Blocker$1.run() line: 15

Comments

Howard Mak 2008-09-10

Output without Terracotta Blocking … Unblocking … Unblocked and program terminates

Output with Terracotta 2008-09-10 15:01:41,183 INFO - Terracotta 2.6.4, as of 20080821-180853 (Revision 9831 by cruise@rh4mo0 from 2.6) 2008-09-10 15:01:41,683 INFO - Configuration loaded from the file at ‘C:\home\hmak\work\proj\eclipse\interrupt\tc-config.xml’. 2008-09-10 15:01:41,871 INFO - Log file: ‘C:\home\hmak\work\proj\eclipse\interrupt\terracotta\client-logs\terracotta-client.log’. 2008-09-10 15:01:45,214 INFO - Statistics buffer: ‘C:\home\hmak\work\proj\eclipse\interrupt\terracotta\client-statistics\20080910150144839’. Blocking … Unblocking … and program does not exit

Fiona OShea 2008-11-06

Re-review per Taylor’s email of 11/4

Fiona OShea 2008-11-07

Customer Contract

Taylor Gautier 2008-11-10

Per customer contract, this fix must be available no later than 60 days after Oct 31. That would be Dec 30.

Chris Dennis 2008-12-05

Fixed: passed a “tcbuild check” using trunk on dev02, awaiting any reports from failing monkeys but so far so good.

Hung Huynh 2008-12-08

test existed