SnapshotService not get registered and after 5 seconds of hanging skips SnapshotResource activation.
This happens because ClusterManagerImpl service tries to synchronously (but in a separate thread) register Elasticsearch client in activate method which in turn tries to activate SnapshotResource jaxrs service which in turn tries to activate SnapshotServiceImpl which depends on ClusterManager service causing deadlock.
After 5 seconds Felix lock timesout and deadlock unwinds but without activated SnapshotResource.
Way to reproduce:
SnapshotService not get registered and after 5 seconds of hanging skips SnapshotResource activation.
This happens because ClusterManagerImpl service tries to synchronously (but in a separate thread) register Elasticsearch client in activate method which in turn tries to activate SnapshotResource jaxrs service which in turn tries to activate SnapshotServiceImpl which depends on ClusterManager service causing deadlock. After 5 seconds Felix lock timesout and deadlock unwinds but without activated SnapshotResource.