You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Mohit Arora (Jira)" <ji...@apache.org> on 2020/01/27 12:37:00 UTC

[jira] [Created] (SLING-9029) Warning logged by PackageQueuedNotifier if a DistributionPackage does not exist in the callback map

Mohit Arora created SLING-9029:
----------------------------------

             Summary: Warning logged by PackageQueuedNotifier if a DistributionPackage does not exist in the callback map
                 Key: SLING-9029
                 URL: https://issues.apache.org/jira/browse/SLING-9029
             Project: Sling
          Issue Type: Bug
          Components: Content Distribution
            Reporter: Mohit Arora
             Fix For: Content Distribution Journal Core 0.1.8


[PackageQueuedNotifier.java|https://github.com/apache/sling-org-apache-sling-distribution-journal/blob/master/src/main/java/org/apache/sling/distribution/journal/impl/publisher/PackageQueuedNotifier.java#L66] handles all the {{DistributionEventTopics.AGENT_PACKAGE_QUEUED}} events and try to remove the distribution package associated with the event from a callback map which does not contain the package as the map is populated only in case of [journal based distribution|https://github.com/apache/sling-org-apache-sling-distribution-journal/blob/master/src/main/java/org/apache/sling/distribution/journal/impl/publisher/DistributionPublisher.java#L314] but the event is thrown in general from [QueueingDistributionPackageProcessor.java|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/agent/impl/QueueingDistributionPackageProcessor.java#L128] which can be called for a normal end to end distribution without using the kafka pipeline and the journal flow.

Ideally, there should be different event(s) generated for different types of distribution.

cc - [~ashishc], [~marett]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)