You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2022/03/14 10:33:14 UTC
[sling-org-apache-sling-jcr-contentloader] branch master updated: SLING-11194 Content Loader: Add log message if Sling-Initial-Content is not processed due to stale lock node at /var/sling/bundle-content
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-contentloader.git
The following commit(s) were added to refs/heads/master by this push:
new 49cbcfb SLING-11194 Content Loader: Add log message if Sling-Initial-Content is not processed due to stale lock node at /var/sling/bundle-content
49cbcfb is described below
commit 49cbcfba3b8873fe08e32202921fc2964fd75ac7
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Thu Mar 10 17:51:16 2022 +0100
SLING-11194 Content Loader: Add log message if Sling-Initial-Content is not processed due to stale lock node at /var/sling/bundle-content
---
.../sling/jcr/contentloader/internal/BundleContentLoaderListener.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoaderListener.java b/src/main/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoaderListener.java
index 5792f15..f00f231 100644
--- a/src/main/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoaderListener.java
+++ b/src/main/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoaderListener.java
@@ -361,6 +361,7 @@ public class BundleContentLoaderListener implements SynchronousBundleListener, B
}
final Node bcNode = parentNode.getNode(nodeName);
if (bcNode.isLocked()) {
+ this.log.debug("Node {}/{} is currently locked, unable to get BundleContentInfo.", BUNDLE_CONTENT_NODE, nodeName);
return null;
}
try {
@@ -370,6 +371,7 @@ public class BundleContentLoaderListener implements SynchronousBundleListener, B
Long.MAX_VALUE, // timeoutHint
null); // ownerInfo
} catch (LockException le) {
+ this.log.debug("Unable to lock node {}/{}, unable to get BundleContentInfo.", BUNDLE_CONTENT_NODE, nodeName, le);
return null;
}
final Map<String, Object> info = new HashMap<>();