Skip to content

Conversation

@hasancanguler
Copy link
Contributor

@hasancanguler hasancanguler commented Sep 25, 2025

When the parallel integration test is executed, the RegisterClassMap method throws an error because it attempts to register multiple times simultaneously during the test.

@bording
Copy link
Member

bording commented Sep 26, 2025

Hi @hasancanguler

It looks like you copied the description from #811 into this PR.

Looking at the previous version of this PR that you closed, it's still not clear what problem you're trying to solve with these changes.

Can you describe more what you were trying to do and what problem you were actually having that you're attempting to solve with this PR?

@hasancanguler
Copy link
Contributor Author

Hi @bording , you are right, it is my mistake, sorry. I fixed it.

To clarify, we run integration tests in parallel. When the first test scenario starts, it registers the map; however, the second test tries to register it at the same time, which results in an 'already registered' error.

@bording bording changed the title Replace Mongo RegisterClassMap Prevent concurrent BsonClassMap registrations Sep 30, 2025
@bording bording merged commit d25d4ce into Particular:master Sep 30, 2025
4 checks passed
@bording
Copy link
Member

bording commented Sep 30, 2025

@hasancanguler Thanks for the contribution. I've made a few changes and merged the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants