-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.13
-
Component/s: Querying
-
Query
-
ALL
-
v3.6, v3.4
Previously, $comment was permitted to be any type. Per SERVER-27438, 3.4 changed that so that $comment is converted to a string internally. This breaks application that were depending on $comment being a document (in our case, we store things like caller information and tracing spans in $comment). We extract this information from the system.profile log and inprog.
Separately, it seems like the comment field in the find and aggregate commands should similarly accept a document.
- duplicates
-
SERVER-29794 Adding a comment to all commands
- Closed
- related to
-
SERVER-27438 Legacy query via mongos drops $comment
- Closed