[ 
https://issues.apache.org/jira/browse/OAK-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519306#comment-14519306
 ] 

Marcel Reutegger commented on OAK-1979:
---------------------------------------

I also think this is rather an application concern. Whether this is just a 
simple flag or some more complex structure to coordinate an initial setup is 
highly application specific and we should probably not define it in Oak.

I'd suggest we close this issue as WONTFIX.

> 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)

Reply via email to