-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support GuidRepresentationMode v3 #108
Comments
@buvinghausen It appears that the underlying issue is that the MongoDB driver has broken SemVer by introducing a breaking change in a minor version, making NServiceBus.Storage.MongoDB compatible only with MongoDB.Driver versions < 2.11. Until there's a better solution, the only valid workaround is to stick with 2.10.x of the driver. Correct? |
@DavidBoike technically they didn't because you have to explicitly opt-in to using the V3 mode it doesn't do it by default so this library still works with 2.11.x releases. I was just trying to give you a heads up that this won't work with the 3.x version of the driver and you can simulate the 3.x behavior and get out ahead of the changes now rather than waiting for the 3.x driver to get released to start. |
Ok, so in that case it's not a bug. Our dependency is already on MongoDB.Driver < 3.0 so it not working with that is not (yet) an issue. I'll raise it with the appropriate group. It won't qualify for immediate prioritization but will more likely get included in some future enhancement release. Thanks for the report @buvinghausen! |
Thanks @DavidBoike |
@DavidBoike I saw @timbussmann's spike to fix this is this safe to assume that will make it into the upcoming v3 release? |
Hey @buvinghausen - that spike was done as a short analysis Tim did to see how big the problem is, and the discovery was that it's not a "quick fix". There are some issues especially with how to deal with Guids in sagas, i.e. if you have a saga that inherits @timbussmann can correct me if I got anything wrong there. In any case, that work has not been prioritized yet. The focus of the V3 release of this component will be compatibility with NServiceBus version 8 when it's ready, and there's no firm date for that. I'm honestly not sure whether a new V2 minor will be released before NServiceBus 8, or if NServiceBus 8 will be released first and then this would go into MongoDB 3.1 or something like that. |
With the advent of the 2.11 MongoDB driver they introduced a new GuidRepresentationMode enumeration (which they conveniently marked obsolete as soon as they introduced it as you will see from all the pragma warnings in their code).
Here is their documentation on guid representation. The big takeaway is that V3 will become the default once 3.0 of the driver drops so this needs to be addressed quickly so we can future proof our apps.
Here is their exception
Here is your triggering of the exception
Here is the stacktrace
The text was updated successfully, but these errors were encountered: