No Error on RunCommand comment for (version <= 3.2)
BulkWrite doesn't appear to error on versions <= 3.2 if a comment is included in the run command:
> db.runCommand({ delete: "records", deletes: [], comment: "x" }) { "ok" : 1, "n" : 0 }
However, version=3.6 does result in an error:
Enterprise test> db.runCommand({ delete: "records", deletes: [], comment: "x" }) MongoServerError: BSON field 'delete.comment' is an unknown field.
Original Description
The DBX-GO team is running into two errors when trying to implement GODRIVER-2199, which was split from DRIVER-742 .
No error on Aggregation (3.6 <= version <= 4.2)
The aggregate.json spec test expects an error when using the comment query modifier on a (3.6 <= version <= 4.2) match aggregate stage. However, testing this on a 3.6.23 server does not return an error:
Enterprise test> db.runCommand({ aggregate: "records", pipeline: [], comment: "x", cursor: {}}) { cursor: { firstBatch: [], id: Long("0"), ns: 'test.records' }, ok: 1 }
It may be worth noting that the 3.6 documentation includes support for aggregation comments.
No Error on RunCommand comment for (version <= 3.2)
Similar to the above issue, BulkWrite doesn't appear to error on versions <= 3.2 if a comment is included in the run command:
> db.runCommand({ delete: "records", deletes: [], comment: "x" }) { "ok" : 1, "n" : 0 }
However, version=3.6 does result in an error:
Enterprise test> db.runCommand({ delete: "records", deletes: [], comment: "x" }) MongoServerError: BSON field 'delete.comment' is an unknown field.
- is caused by
-
DRIVERS-742 Add support for the comment field to all helpers
- Closed
- is depended on by
-
GODRIVER-2199 Add support for the comment field to all helpers
- Closed
- split to
-
PHPLIB-749 Support comment option on command helpers
- Closed
-
CSHARP-4151 No error raised for bulkWrite with comment on <= 3.2
- Closed
-
CXX-2498 No error raised for bulkWrite with comment on <= 3.2
- Closed
-
GODRIVER-2394 No error raised for bulkWrite with comment on <= 3.2
- Closed
-
MOTOR-947 No error raised for bulkWrite with comment on <= 3.2
- Closed
-
NODE-4207 No error raised for bulkWrite with comment on <= 3.2
- Closed
-
PYTHON-3238 No error raised for bulkWrite with comment on <= 3.2
- Closed
-
RUBY-2970 No error raised for bulkWrite with comment on <= 3.2
- Closed
-
RUST-1291 No error raised for bulkWrite with comment on <= 3.2
- Closed
-
CDRIVER-4199 Add support for the comment field to all helpers
- Closed
-
JAVA-4591 No error raised for bulkWrite with comment on <= 3.2
- Closed