-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid circular reference warning with DiscoveryServiceHelper #2650
Comments
…auses circular reference (Adobe-Consulting-Services#2650)
Isn't this rather a bug in the |
I'd say it's complicated. Technically the log.error that shows up is only somewhat overly loud - as later on the situation clears as it turns out it is not actually a circular reference. So from that point of view one might argue that osgi could try harder at avoiding this noise. Then again, one could also argue from an API usage point of view - as it is indeed cleaner to use the TopologyEventHandler - as otherwise you risk race conditions between the time DiscoveryService.getTopology() is asked vs when the TopologyEventHandler is invoked. Using both concurrently is a somewhat risky task. |
According to Adobe Support this issue is responsible for extremely long runtimes of Adobes CI-CD Pipeline ? Do you have planned Release Date for Milestone 5.0.8 ? |
Required Information
Expected Behavior
Startup of AEM with acs-aem-commons deployed should not issue a log.error about a circular reference with DiscoveryServiceHelper (and OakDiscoveryService)
Actual Behavior
Startup of AEM with acs-aem-commons (seen with 5.0.4 but presumably also happens with latest as that code hasn't changed) issues the following log.error:
and
Steps to Reproduce
Note that this was not seen with a Vanilla AEM but with AEM as a Cloud Service - hence the exact timing that reproduces this might also be influenced by other packages/bundles deployed.
Having said that, the error is a result of the fact that OakDiscoveryService being a DiscoveryService as well as it itself manages TopologyEventListeners - and DiscoveryServiceHelper being both a TopologyEventListener as well as having a reference to DiscoveryService
Links
Links to related assets, e.g. content packages containing test components
The text was updated successfully, but these errors were encountered: