enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

Initialization on non-master nodes #6255

Closed GlennRicaud closed 6 years ago

GlennRicaud commented 6 years ago

With a clean cluster configured with 3 nodes (6.14.3):

Visually, this has, for example, as a result that the IssueService is not started (->ContentServiceImpl->ContentTypeServiceImpl->ApplicationServiceImpl): Screen Shot 2018-05-15 at 15.41.52.png

GlennRicaud commented 6 years ago

Also noticed that IssueService does not check that it is the master node (Not the problem here, but should be fixed)

GlennRicaud commented 6 years ago

=> Initialization of services on non-master nodes should be blocking until the end of the Initializer procedure on the master node. => Refactor the initializers to handle this case. Refactor to make the code common to all initializer