mongodb / specifications

Specifications related to MongoDB
http://specifications.readthedocs.io/en/latest
Other
389 stars 242 forks source link

DRIVERS-2524 assert collections are not created on unsupported server #1428

Closed kevinAlbs closed 1 year ago

kevinAlbs commented 1 year ago

Summary

Background & Motivation

CDRIVER-4653 reports a bug in the C driver implementation of DRIVERS-2524:

the state collections for QEv2 are created before the wire version check for MongoDB 7.0+.

The assertions in this PR are intended to verify this bug is fixed.

A separate drivers ticket was not created. Surveying other driver implementations, the C driver appears to be the only driver with this bug.

Please complete the following before merging: