Michael Marth created OAK-1979:
----------------------------------

             Summary: 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


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.2#6252)

Reply via email to