mongodb / specifications

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

DRIVERS-2209 Simplify metadata truncation rules #1394

Closed abr-egn closed 1 year ago

abr-egn commented 1 year ago

DRIVERS-2209

The preservation order introduced in #1386 turned out to be both confusing and mildly broken - the server has constraints about the driver and application documents it wasn't respecting. This PR simplifies the spec to only resolve the ambiguity that would otherwise have been introduced between platform and env; a larger scope set of rules, if needed, should be its own spec update.

prestonvasquez commented 1 year ago

It may help readability to update "The entire metadata BSON document MUST NOT exceed 512 bytes" to:

The entire client metadata BSON document MUST NOT exceed 512 bytes.

abr-egn commented 1 year ago

It may help readability to update "The entire metadata BSON document MUST NOT exceed 512 bytes" to:

The entire client metadata BSON document MUST NOT exceed 512 bytes.

Good thought, I've included this as well.