include thread name in the error message
authorKiran Ayyagari <kayyagari@apache.org>
Mon, 29 Jun 2015 08:16:37 +0000 (08:16 +0000)
committerKiran Ayyagari <kayyagari@apache.org>
Mon, 29 Jun 2015 08:16:37 +0000 (08:16 +0000)
mavibot/src/main/java/org/apache/directory/mavibot/btree/RecordManager.java

index 3b2fd1e..4137bab 100644 (file)
@@ -649,8 +649,10 @@ public class RecordManager extends AbstractTransactionManager
         // We *must* own the transactionLock
         if ( !transactionLock.isHeldByCurrentThread() )
         {
-            TXN_LOG.error( "This thread does not hold the transactionLock" );
-            throw new RecordManagerException( "This thread does not hold the transactionLock" );
+            String name = Thread.currentThread().getName();
+            String err = "This thread, '" + name + "' does not hold the transactionLock ";
+            TXN_LOG.error( err );
+            throw new RecordManagerException( err );
         }
 
         if ( TXN_LOG.isDebugEnabled() )