[jboss-jira] [JBoss JIRA] Created: (JBCACHE-1165) Endless loop in PessimisticLockInterceptor

Jacek Halat (JIRA) jira-events at lists.jboss.org
Fri Aug 17 03:34:17 EDT 2007


Endless loop in PessimisticLockInterceptor
------------------------------------------

                 Key: JBCACHE-1165
                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1165
             Project: JBoss Cache
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 1.4.1.SP4
         Environment: Windows XP, Sun jdk150_06 
Solaris 10
            Reporter: Jacek Halat
         Assigned To: Manik Surtani


When 2 Threads are simulatanous putting/removing values from this same node TreeCache hang's up and goes into endless loop.
Main loop looks like:
				for (int x = 0; x < 1000; x++) {
					tm.begin();
					System.out.println("R" + Thread.currentThread().getName());
					//inside transaction
					cache.remove("/a");
					System.out.println("AR" + Thread.currentThread().getName());
					tm.commit();
					//outside transaction
					System.out.println("P" + Thread.currentThread().getName());
					cache.put("/a/b/c/d", "text"+x,"b");
					System.out.println("AP" + Thread.currentThread().getName());
				}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list