-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix runCommand
's inserts of documents without _id
s
#2574
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2574 +/- ##
==========================================
- Coverage 65.61% 65.59% -0.02%
==========================================
Files 411 411
Lines 20134 20148 +14
==========================================
+ Hits 13210 13217 +7
- Misses 5982 5989 +7
Partials 942 942
... and 1 file with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
That problem usually occurs when we modify the original message and then try to send it to a proxy. As a result of this I made the necessary changes to make it work. |
runCommand
's inserts of documents without _id
s runCommand
's inserts of documents without _id
s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Closes #1714 .
_id
s generation forrunCommand
insert.IT DOES NOT WORK FULLY!
While running
db.runCommand({ insert: "{collection}", documents: [ {v: "abc" } ]})
it fails:clientconn/conn.go:164 expected length 95 (marshaled body size) + 16 (fixed marshaled header size) = 111, got 94
.However, when the FerretDB is run once again the inserted value appears in the collection.
Thank you in advance for help!
Readiness checklist
task all
, and it passed.@FerretDB/core
), Labels, Project and project's Sprint fields.