[
https://issues.apache.org/jira/browse/OAK-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519261#comment-14519261
]
Michael Marth commented on OAK-1979:
------------------------------------
[[email protected]], hmm, good point. Wondering if this improvement should
be implemented on Oak level at all... Or whether it should be an application
topic altogether...
But if we decide to implement it on Oak level: maybe on the initial creation of
the repository (by the application) the app could set a repo-wide flag (i.e.
new API). Probably on oak-core level (not MK).
> prevent simultaneous installation of different instances
> --------------------------------------------------------
>
> Key: OAK-1979
> URL: https://issues.apache.org/jira/browse/OAK-1979
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: mongomk, rdbmk
> Reporter: Michael Marth
> Priority: Minor
> Labels: resilience
>
> For MongoMK and RDBMK: if the repository is empty and 1 Oak instance starts
> to do an initial application installation (creating dbs, adding nodetypes,
> etc) we should prevent a second instance from doing the same simultaneously.
> This would happen e.g. when 2 instances are started at the same time.
> The 1st instance could set a flag "initializing" that gets removed
> afterwards. The 2nd instance should wait or abort.
> In case the 1st instance does not finish the installation and does not remove
> the flag we should have some "force install" behavior for the second instance
> (alternatively we could prompt the user to drop the half-filled DBs).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)