summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolivier lamy <olamy@apache.org>2016-03-02 14:43:46 +1100
committerolivier lamy <olamy@apache.org>2016-03-02 14:43:46 +1100
commit8210219209c3d19232ab02c7fc5e8b0bfa5ddeec (patch)
tree85ad6ec4ebfd6ccc3e880c5e348380c3136e33af
parent95077dba05e56f29cc1bf4d69e37fa18cc253582 (diff)
downloadarchiva-8210219209c3d19232ab02c7fc5e8b0bfa5ddeec.tar.gz
archiva-8210219209c3d19232ab02c7fc5e8b0bfa5ddeec.zip
ignore this error
Signed-off-by: olivier lamy <olamy@apache.org>
-rw-r--r--archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
index 8fecba8a5..364930998 100644
--- a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
@@ -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 )
{