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

Duplicate OIDs within the same Database #1243

Open
muren400 opened this issue Feb 11, 2022 · 6 comments
Open

Duplicate OIDs within the same Database #1243

muren400 opened this issue Feb 11, 2022 · 6 comments
Labels

Comments

@muren400
Copy link
Contributor

muren400 commented Feb 11, 2022

Hi,

not sure if this is actually a bug or not, but I read somewhere in the wiki, that oids should be unique within a database. Nonetheless I stumbled upon two different IfcProject entries that share the same oid. Is this a very unusual glitch that one should be concerned about or can there be duplicate oids for different revisions?

Thanks,
Andreas

PS.: this happened in 1.5.182

@hlg
Copy link
Member

hlg commented Feb 12, 2022

Depends on how the two IfcProject entities are "different". If you create revisions by using the low level interface, then yes - you will have one stable oid for an entity throughout different revisions (see Database versioning). In that case, the two IfcProject entities wouldn't actually be "different". Otherwise I think it is rather unexpected.

@muren400
Copy link
Contributor Author

It's two different IFC Files checked in into two different subprojects.

@muren400
Copy link
Contributor Author

There were two rollbacks during the checkin of the first model. The Server was restarted twice before the checkin of the second model.

@zaqifathis
Copy link
Collaborator

I attempted to reproduce the issue using BIMserver 1.5.185 but was unable to replicate the same results. I am not sure if that happened because of the error you have during the first checkin.

@hlg
Copy link
Member

hlg commented Nov 27, 2024

This will be difficult to reproduce. @muren400, do you still have access to that data and logs? Which serializer did you checkin with (streaming?) and which database exceptions caused the rollbacks? If StreamingCheckinDatabaseAction.rollback was triggered, there should be something in the logs as well. From my understanding, duplicate OIDs for different entities in one database could indeed have unpredictable consequences down the line and is not something that is handled gracefully.

@zaqifathis zaqifathis added the bug label Dec 2, 2024
@muren400
Copy link
Contributor Author

We are using the streaming deserializer. Unfortunately we do not have those logs anymore.
I'm also not aware of this happening again since then.

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

No branches or pull requests

3 participants