[JAVA-4228] Disable tests of legacy wire protocol for 5.1+ servers Created: 09/Jul/21  Updated: 28/Oct/23  Resolved: 09/Jul/21

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: 4.3.0

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In 5.1 the legacy wire protocol (OP_QUERY/UPDATE/INSERT/DELETE/KILL_CURSORS) is no longer supported. All the low level integration tests in driver-core for those protocols need to be disabled for 5.1+.



 Comments   
Comment by Githook User [ 03/Aug/21 ]

Author:

{'name': 'jyemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Use getMore command in tests, when available

In 5.1+, the legacy wire protocol is no longer supported, which includew
OP_GET_MORE

Although this message type will not be invoked in 5.1+ under normal usage,
there are integration tests in driver-core that use it directly,
and those have been modified so that they use the getMore command instead,
when available.

JAVA-4228
Branch: 4.3.x
https://github.com/mongodb/mongo-java-driver/commit/9002b1eedc75ec689d3c9cc742b23c1b4b9feea7

Comment by Githook User [ 20/Jul/21 ]

Author:

{'name': 'jyemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Use getMore command in tests, when available

In 5.1+, the legacy wire protocol is no longer supported, which includew
OP_GET_MORE

Although this message type will not be invoked in 5.1+ under normal usage,
there are integration tests in driver-core that use it directly,
and those have been modified so that they use the getMore command instead,
when available.

JAVA-4228
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c9beb4b398ec91307ac0dc1f24a7b2d4569aa6b2

Comment by Githook User [ 14/Jul/21 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Disable tests of legacy wire protocol on 5.1+ servers

In 5.1+, the legacy wire protocol is no longer supported. This includes

  • OP_QUERY
  • OP_INSERT
  • OP_UPDATE
  • OP_DELETE
  • OP_KILL_CURSORS

Although none of these wire protocol messsage will be used in 5.1+ under
normal usage, there are integration tests in driver-core that test them directly,
and those have been disabled or modified so that they will work.

JAVA-4228
Branch: 3.12.x
https://github.com/mongodb/mongo-java-driver/commit/b062e59a48fd31b5ff3cc3305dec6f7374a6e79e

Comment by Githook User [ 11/Jul/21 ]

Author:

{'name': 'jyemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Fix test: add serverApi to command

JAVA-4228
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a3afd758f0c79e82623fc660343080fc4555da35

Comment by Githook User [ 09/Jul/21 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Disable tests of legacy wire protocol on 5.1+ servers

In 5.1+, the legacy wire protocol is no longer supported. This includes

  • OP_QUERY
  • OP_INSERT
  • OP_UPDATE
  • OP_DELETE
  • OP_KILL_CURSORS

Although none of these wire protocol messsage will be used in 5.1+ under
normal usage, there are integration tests in driver-core that test them directly,
and those have been disabled or modified so that they will work.

JAVA-4228
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/fce49df1719497e92ea7799a944c6ceb1a69c57f

Generated at Thu Feb 08 09:01:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.