Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODE-1844 - Improved error handling & recovery during startup, so that an exception does not leave the repository in inconsistent state #737

Merged
merged 1 commit into from Mar 11, 2013

Conversation

hchiorean
Copy link
Member

The original thought for solving this was to use a start-up transaction which could be easily rolled back in case of an exception. However, this is not feasible since the whole point of the REPOSITORY_INFO_DOC was to notify other members in a potential cluster that one node is doing the initialization.

Therefore, using a long-running start-up transaction would not work, the whole point being that the document gets written to the persistent store ASAP.

The solution was to clean-up/improve exception handling and in the case of an unexpected error, remove the above mentioned document, if the node on which the error occurred was the node which started the initialization process.

…t an exception does not leave the repository in inconsistent state
@rhauch rhauch merged commit ea3b90e into ModeShape:master Mar 11, 2013
@rhauch
Copy link
Contributor

rhauch commented Mar 11, 2013

Merged into the 'master' brach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants