[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/loader/deadlock ...

Manik Surtani msurtani at jboss.com
Sun Nov 26 08:56:27 EST 2006


  User: msurtani
  Date: 06/11/26 08:56:27

  Modified:    tests/functional/org/jboss/cache/loader/deadlock  Tag:
                        Branch_JBossCache_1_3_0
                        ConcurrentCreationDeadlockTest.java
  Log:
  Added more debug info
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +13 -3     JBossCache/tests/functional/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConcurrentCreationDeadlockTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/loader/deadlock/ConcurrentCreationDeadlockTest.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -b -r1.2 -r1.2.2.1
  --- ConcurrentCreationDeadlockTest.java	21 Mar 2006 23:40:19 -0000	1.2
  +++ ConcurrentCreationDeadlockTest.java	26 Nov 2006 13:56:27 -0000	1.2.2.1
  @@ -348,14 +348,24 @@
                   + Thread.currentThread() + " " + msg);
       }
   
  +   private void log(String msg, Exception e) {
  +       System.out.println(System.currentTimeMillis() + " "
  +               + Thread.currentThread() + " " + msg);
  +
  +      System.out.println("\n\n");
  +      e.printStackTrace();
  +      System.out.println("\n\n");
  +   }
  +
  +
       /**
        * A worker thread that applies the concurrent modifications.
        *
        * @author Marian Nikolov
        * @author $Author: msurtani $
        * @version $RCSfile: ConcurrentCreationDeadlockTest.java,v $
  -     * @version $Revision: 1.2 $
  -     * @version $Date: 2006/03/21 23:40:19 $
  +     * @version $Revision: 1.2.2.1 $
  +     * @version $Date: 2006/11/26 13:56:27 $
        */
       private class Worker extends Thread {
           /** Used to fire all workers at the same time. */
  @@ -423,7 +433,7 @@
                       log("leave " + i + " took " + time + " msec");
                   }
               } catch (Exception e) {
  -                log("caught exception in state " + m_state + ": " + e);
  +                log("caught exception in state " + m_state, e);
                   mcl_exception = e;
               }
           }
  
  
  



More information about the jboss-cvs-commits mailing list