jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r903256 - /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/LazyItemIterator.java
Date Tue, 26 Jan 2010 15:08:21 GMT
Author: mduerig
Date: Tue Jan 26 15:08:20 2010
New Revision: 903256

URL: http://svn.apache.org/viewvc?rev=903256&view=rev
Log:
JCR-2478: Improve logging in LazyItemIterator#prefetchNext 

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/LazyItemIterator.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/LazyItemIterator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/LazyItemIterator.java?rev=903256&r1=903255&r2=903256&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/LazyItemIterator.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/LazyItemIterator.java
Tue Jan 26 15:08:20 2010
@@ -16,28 +16,29 @@
  */
 package org.apache.jackrabbit.jcr2spi;
 
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEntry;
-import org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyManager;
-import org.apache.jackrabbit.spi.ItemId;
-import org.apache.jackrabbit.spi.NodeId;
-import org.apache.jackrabbit.spi.PropertyId;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+import java.util.NoSuchElementException;
 
-import javax.jcr.NodeIterator;
-import javax.jcr.PropertyIterator;
 import javax.jcr.Item;
 import javax.jcr.ItemNotFoundException;
-import javax.jcr.RepositoryException;
 import javax.jcr.Node;
+import javax.jcr.NodeIterator;
 import javax.jcr.Property;
+import javax.jcr.PropertyIterator;
 import javax.jcr.RangeIterator;
-import javax.jcr.version.VersionIterator;
+import javax.jcr.RepositoryException;
 import javax.jcr.version.Version;
-import java.util.NoSuchElementException;
-import java.util.Iterator;
-import java.util.List;
-import java.util.ArrayList;
+import javax.jcr.version.VersionIterator;
+
+import org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyEntry;
+import org.apache.jackrabbit.jcr2spi.hierarchy.HierarchyManager;
+import org.apache.jackrabbit.spi.ItemId;
+import org.apache.jackrabbit.spi.NodeId;
+import org.apache.jackrabbit.spi.PropertyId;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * <code>LazyItemIterator</code> is an id-based iterator that instantiates
@@ -136,7 +137,7 @@
             try {
                 nextItem = itemMgr.getItem(entry);
             } catch (RepositoryException e) {
-                log.warn("Failed to fetch item " + entry + ", skipping.", e.getMessage());
+                log.warn("Failed to fetch item " + entry.getName() + ", skipping.", e.getMessage());
                 // reduce the size... and try the next one
                 size--;
             }



Mime
View raw message