]> source.dussan.org Git - archiva.git/commitdiff
ignore this error
authorolivier lamy <olamy@apache.org>
Wed, 2 Mar 2016 03:43:46 +0000 (14:43 +1100)
committerolivier lamy <olamy@apache.org>
Wed, 2 Mar 2016 03:43:46 +0000 (14:43 +1100)
Signed-off-by: olivier lamy <olamy@apache.org>
archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java

index 8fecba8a55282dba9696a55505f5b55e528ac706..36493099857059f6dbd15f44bc1dd67f536906ea 100644 (file)
@@ -42,6 +42,7 @@ import org.slf4j.LoggerFactory;
 
 import com.google.common.collect.ImmutableMap;
 
+import javax.jcr.InvalidItemStateException;
 import javax.jcr.NamespaceRegistry;
 import javax.jcr.Node;
 import javax.jcr.NodeIterator;
@@ -1346,6 +1347,9 @@ public class JcrMetadataRepository
         try
         {
             getJcrSession().save();
+        } catch ( InvalidItemStateException e ) {
+            // olamy this might happen when deleting a repo while is under scanning
+            log.warn( "skip InvalidItemStateException:" + e.getMessage(), e );
         }
         catch ( RepositoryException e )
         {