简体   繁体   English

MongoDB Java驱动程序问题

[英]MongoDB Java driver questions

We are looking to upgrade our MongoDB from version 3.0.6 (with Java driver 3.0.4) to version 3.2.12. 我们希望将MongoDB从3.0.6版(带有Java驱动程序3.0.4)升级到3.2.12版。 (I know version 3.4.x is available, but I understand you can't go directly from 3.0.x to 3.4.x if you need to migrate data.) A couple questions about the Java driver: (我知道版本3.4.x是可用的,但是我知道如果需要迁移数据,则不能直接从3.0.x转到3.4.x。)关于Java驱动程序的几个问题:

  • Is Java driver 3.2.2 the right version that matches server 3.2.12? Java驱动程序3.2.2是与服务器3.2.12匹配的正确版本吗?
  • Is it supported for a newer Java driver version to communicate with an older server version? 是否支持较新的Java驱动程序版本与较旧的服务器版本进行通信? In this case, it would be Java driver 3.2.2 talking to an older 3.0.6 server. 在这种情况下,它将是Java驱动程序3.2.2与较旧的3.0.6服务器通信。 I compiled our client code with Java driver 3.2.2 today and saw no differences in the compiler output, so they seem compatible -- though this may not be supported in any case. 今天,我使用Java驱动程序3.2.2编译了客户端代码,但在编译器输出中没有看到任何差异,因此它们看起来是兼容的-尽管在任何情况下都可能不支持。
  • Are there any issues with using Java driver 3.0.4 to talk to server 3.2.12? 使用Java驱动程序3.0.4与服务器3.2.12对话是否存在任何问题?

Most of these questions are answered in the compatibility documentation for this driver. 这些驱动程序的兼容性文档中大多数回答了这些问题。

Is Java driver 3.2.2 the right version that matches server 3.2.12? Java驱动程序3.2.2是与服务器3.2.12匹配的正确版本吗?

Looks like yes, but you should make sure 3.2.2 is the most up to minor version for the 3.2 release ( https://github.com/mongodb/mongo-java-driver/releases ). 看起来不错,但是您应该确保3.2.2是3.2发行版的最新次要版本( https://github.com/mongodb/mongo-java-driver/releases )。

Is it supported for a newer Java driver version to communicate with an older server version? 是否支持较新的Java驱动程序版本与较旧的服务器版本进行通信?

Yes, the 3.2 version of the driver can work with 3.0.X version of MongoDB. 是的,驱动程序的3.2版本可以与MongoDB的3.0.X版本一起使用。

Are there any issues with using Java driver 3.0.4 to talk to server 3.2.12? 使用Java驱动程序3.0.4与服务器3.2.12对话是否存在任何问题?

This table doesn't reference a 3.0 version of the MongoDB Java driver. 该表未引用3.0版本的MongoDB Java驱动程序。 Did you mean a different driver version? 您是不是要使用其他驱动程序版本?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM