[CDRIVER-463] what's the corresponding relation between mongodb server and c driver Created: 18/Nov/14 Updated: 11/Sep/19 Resolved: 25/Feb/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.0.2 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Allen K | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
centos 4.3 |
||
| Description |
|
I upgrade mongodb server to version 2.6.5 from 2.0.2 recently. It seems that c driver vesion 0.7.1 do not support mongodb 2.6.5. No data can be inserted into mongodb since I upgrade mongodb. So I want to know what's the corresponding relation between mongodb server and c driver? Is there a version of c driver compatible for both mongodb 2.6.5 and 2.0.2? It's important to me because we are runing both 2.6.5 and 2.0.2. |
| Comments |
| Comment by Mira Carey [ 25/Feb/15 ] |
|
Allen, The C driver versions > 1.0.0 should support mongod as far back as 2.2, so 2.2.1 should be supported. That said, minor versions of the server don't receive security updates, so I'd advise that you try to upgrade to 2.2.7 if possible. Regards, |
| Comment by Allen K [ 19/Nov/14 ] |
|
Hi Jason, |
| Comment by Mira Carey [ 18/Nov/14 ] |
|
I'm sorry to hear you've run into problems upgrading your installation of mongodb. Unfortunately you're running a configuration that we no longer support. The current stable revision of the C driver is 1.0.2 and the oldest version of mongod that we specifically test against with that driver is 2.2.7. Upgrading will also require a rewrite of your client code, because the api for the c driver changed significantly between the 0.7.1 and 1.0.0. On the plus side, after you've made the upgrade to 1.0.0 you'll get a guarantee of abi stability from us until 2.0.0, so that should be the last time investment you'll have to make for a while. As to whether the newer version of the c driver will work with 2.0.2, I'm honestly unsure. I don't test against that configuration, so I can't promise that if it works today that it will always work, but 2.2 is quite similar to 2.0. So keeping in mind that some tests won't pass (if nothing else aggregation didn't exist in 2.0, so those methods won't work), you may be able to get some functionality. Latest stable revision of the c driver: https://github.com/mongodb/mongo-c-driver/releases/tag/1.0.2 Thanks for using the C driver, |