jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r956928 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/ActiveSessionState.java
Date Tue, 22 Jun 2010 15:46:07 GMT
Author: jukka
Date: Tue Jun 22 15:46:07 2010
New Revision: 956928

URL: http://svn.apache.org/viewvc?rev=956928&view=rev
Log:
JCR-890: concurrent read-only access to a session

Improved logging.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/ActiveSessionState.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/ActiveSessionState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/ActiveSessionState.java?rev=956928&r1=956927&r2=956928&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/ActiveSessionState.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/ActiveSessionState.java
Tue Jun 22 15:46:07 2010
@@ -56,11 +56,14 @@ public class ActiveSessionState implemen
      */
     public void perform(SessionOperation operation) throws RepositoryException {
         if (!lock.tryLock()) {
-            log.warn("Attempt to perform a {} operation while another thread"
-                    + " is concurrently accessing the session", operation);
+            log.warn("Attempt to perform {} while another thread is"
+                    + " concurrently accessing the session. Blocking until"
+                    + " the other thread is finished using this session.",
+                    operation);
             lock.lock();
         }
         try {
+            log.debug("Performing {} on {}", operation, this);
             operation.perform();
         } finally {
             lock.unlock();



Mime
View raw message