[
https://issues.apache.org/jira/browse/SLING-9052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17034476#comment-17034476
]
Dominik Süß commented on SLING-9052:
------------------------------------
[~cschneider] please see added clarification above - the problem is that there
was not indicator from the outside showing that an error was happening beyond
the error messages in the error.log. The problem was only identified as in the
test case I was anticipating the queue to eventually show to be blocked - I
gave up after 1h and found it in the described state.
> DistributionSubscriber is not failing correctly on OakConstraint0025
> ---------------------------------------------------------------------
>
> Key: SLING-9052
> URL: https://issues.apache.org/jira/browse/SLING-9052
> Project: Sling
> Issue Type: Bug
> Components: Content Distribution
> Reporter: Dominik Süß
> Assignee: Timothee Maret
> Priority: Major
>
> During the reproduction attempt of another issue a node was mistakenly
> replicated incomplete (not satisfying the OakConstraints) leading to
> OakConstraint0025 - this should have caused the replication to be considered
> failed as the replicated node couldn't be written into the repository at
> first hand - instead this caused >4000 retries within an hour until being
> noticed.
> {code}
> *ERROR* [Queue Processor for Subscriber agent forwardSubscriber]
> org.apache.sling.distribution.journal.impl.subscriber.DistributionSubscriber
> Error processing queue item
> org.apache.sling.distribution.common.DistributionException:
> javax.jcr.nodetype.ConstraintViolationException: OakConstraint0025:
> /etc/packages/my_packages/temptest.zip[[nt:file]]: Mandatory child node
> jcr:content not found in a new node
> at
> org.apache.sling.distribution.serialization.impl.vlt.FileVaultContentSerializer.importFromStream(FileVaultContentSerializer.java:170)
> [org.apache.sling.distribution.core:0.4.1.T201912202217-537bb57]
> at
> org.apache.sling.distribution.packaging.impl.InMemoryDistributionPackageBuilder.installPackageInternal(InMemoryDistributionPackageBuilder.java:119)
> [org.apache.sling.distribution.core:0.4.1.T201912202217-537bb57]
> at
> org.apache.sling.distribution.packaging.impl.AbstractDistributionPackageBuilder.installPackage(AbstractDistributionPackageBuilder.java:156)
> [org.apache.sling.distribution.core:0.4.1.T201912202217-537bb57]
> at
> org.apache.sling.distribution.monitor.impl.MonitoringDistributionPackageBuilder.installPackage(MonitoringDistributionPackageBuilder.java:92)
> [org.apache.sling.distribution.core:0.4.1.T201912202217-537bb57]
> at
> org.apache.sling.distribution.serialization.impl.vlt.VaultDistributionPackageBuilderFactory.installPackage(VaultDistributionPackageBuilderFactory.java:340)
> [org.apache.sling.distribution.core:0.4.1.T201912202217-537bb57]
> at
> org.apache.sling.distribution.journal.impl.subscriber.PackageHandler.installAddPackage(PackageHandler.java:70)
> [org.apache.sling.distribution.journal:0.1.7.T202023011551-c372493]
> at
> org.apache.sling.distribution.journal.impl.subscriber.PackageHandler.apply(PackageHandler.java:53)
> [org.apache.sling.distribution.journal:0.1.7.T202023011551-c372493]
> at
> org.apache.sling.distribution.journal.impl.subscriber.BookKeeper.importPackage(BookKeeper.java:153)
> [org.apache.sling.distribution.journal:0.1.7.T202023011551-c372493]
> at
> org.apache.sling.distribution.journal.impl.subscriber.DistributionSubscriber.processQueueItem(DistributionSubscriber.java:408)
> [org.apache.sling.distribution.journal:0.1.7.T202023011551-c372493]
> at
> org.apache.sling.distribution.journal.impl.subscriber.DistributionSubscriber.fetchAndProcessQueueItem(DistributionSubscriber.java:369)
> [org.apache.sling.distribution.journal:0.1.7.T202023011551-c372493]
> at
> org.apache.sling.distribution.journal.impl.subscriber.DistributionSubscriber.processQueue(DistributionSubscriber.java:353)
> [org.apache.sling.distribution.journal:0.1.7.T202023011551-c372493]
> at java.base/java.lang.Thread.run(Thread.java:834)
> Caused by: javax.jcr.nodetype.ConstraintViolationException:
> OakConstraint0025: /etc/packages/my_packages/temptest.zip[[nt:file]]:
> Mandatory child node jcr:content not found in a new node
> {code}
> Clarification:
> The expected behavior would be at least having the queue being blocked (which
> happened at no point) and in the specific case retries are doomed to
> continously fail as the package is incompatible with the target while. The
> errormessage does spam the error.log
--
This message was sent by Atlassian Jira
(v8.3.4#803005)