-
Notifications
You must be signed in to change notification settings - Fork 192
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
Avoid inconsistencies due to multiple profiles using the same database #182
Comments
Original comment by Giovanni Pizzi (Bitbucket: pizzi, GitHub: giovannipizzi): Suggested solution:
Additional considerations:
|
Original comment by Giovanni Pizzi (Bitbucket: pizzi, GitHub: giovannipizzi): Please, comment saying if you approve the suggested solution, or if you think there are issues that could arise. |
In light of the movement away from multi user mode, a new suggested solution should be considered:
|
Without the intention of properly implementing multi user, this now should be considered a major bug. |
�Optionally, check that there are no two profiles with the same UUID in the same file? From #2064 |
We discussed this today at the AiiDA meeting - in the "new 2.0" repository, this means e.g. adding in the DbSettings the disk-objectstore container ID, and checking that it matches on |
The check that database and repository are compatible solves the problem of accidentally coupling the wrong repo to a certain database. However, this does not tackle the potential problem of two profiles defining the exact same repo and database and then operating at the same time. I initially interpreted the issue to be mostly about this. But maybe this should be a separate issue. In that case I do think the title of this one should probably be clarified a bit. |
I would vote to close this issue for the following reasons. In principle, I don't see a problem with multiple profiles defining the same database. Anyway this could be done across AiiDA installations, so there is no way we can stop it. With the merging of #4345 the database and repository are now at least cross-checked for compatibility and so the accidental configuration of an existing database with a new empty repository or incompatible repository is taken care off. |
Originally reported by: Giovanni Pizzi (Bitbucket: pizzi, GitHub: giovannipizzi)
The AiiDA guide tells to use a DB name 'aiidadb'. If two people work on the same workstation, and just follow the instructions, they will end up using the same DB, but with independent repository folders. This will create many problems when they do a query and want to access data from the other user (it will show as if the repository folder is missing in their repo).
We need a way to check that the two are consistent, and do this check at the right times (i.e., we also need to avoid to do it at every
load_dbenv()
, that will just slow down the procedure).The text was updated successfully, but these errors were encountered: