-
Notifications
You must be signed in to change notification settings - Fork 89
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 for Mongo 3.6 #71
Comments
Actually some time ago I started implementation for opcode 2013 ( However, I de-prioritized the work since I’m currently not aware of use-case where you are able to notice the difference. If you have such a case, could you provide a minimal test case? |
Thanks @bwaldvogel The MongoClient asks the database for its "version" on initial connection so it knows which opcodes to use, but it also enables/disables client-side retries if the database is newer / older than 3.6.0. Perhaps there are other client-side features that are enabled / disabled depending on the backend version, but our team was particular interested in retryReads and retryWrites. Hope that gives you some context :) |
On the topic of 3.6 support I was wondering about support for
Where |
@freakbite: I’ve started to implement support for |
@freakbite: The change is released in version |
@bwaldvogel I'm looking at implementing transactions which requires the implementation of OP_MSG. I'm happy to pick this up, if you have made any progress and have something to share I would appreciate it. |
I was finally able to finish my earlier work on support for Note that mongo-java-server currently does not enable wire protocol version 6 by default! @ngbalk, @snava10: MemoryBackend backend = new MemoryBackend().version(ServerVersion.MONGO_3_6);
MongoServer mongoServer = new MongoServer(backend); |
Awesome @bwaldvogel ! I'm excited to test this out! |
The change is available in version |
Closing since the wire protocol in version 6 (MongoDB 3.6+) is the new default since mongo-java-server version |
MemoryBackend currently is coded to emulate Mongo 3.0.0 - any plans on supporting newer versions (3.6.0)?
This would require updating the OpCode handling as 3.6 introduces a new OpCode that is not currently supported (#2013)
mongo-java-server/core/src/main/java/de/bwaldvogel/mongo/wire/OpCode.java
Line 16 in 7449324
The text was updated successfully, but these errors were encountered: